π€ wonder if i can use binfmt_misc
to tell linux that when i type chmod +x ./potato.rom; ./potato.rom
that it should use /usr/bin/uxnemu
to launch it
then i can just dump piles of cool roms into my bin/
, which is in $PATH
, and launch them from anywhere
#uxn
Devine Lu Linvega
in reply to a very weeny construct π • • •a very weeny construct π
in reply to Devine Lu Linvega • • •a very weeny construct π
in reply to a very weeny construct π • • •@neauoire i'm going to take your advice and just list each rom in my aliases file to launch them with uxnemu. but i'm still curious--
is there a way to learn whether any given file is a uxn rom regardless of its filename?
"file signatures" are a typical way to do this. does/could uxn support something like that (or would you not want it to)?
https://en.wikipedia.org/wiki/List_of_file_signatures
Wikimedia list article
Contributors to Wikimedia projects (Wikimedia Foundation, Inc.)Devine Lu Linvega
in reply to a very weeny construct π • • •You can test for the .rom extension, and read the first 6 bytes, if you get:
a0 ** ** 80 06 37
Then you can be pretty sure that it's a uxn rom.
http://wiki.xxiivv.com/site/metadata.html
XXIIVV β metadata
wiki.xxiivv.coma very weeny construct π
in reply to Devine Lu Linvega • • •idk if this is the most efficient way to do it, but with @neauoire's help, i could make file(1) detect (most of) my #uxn roms π
the configuration that does this is here: https://git.orbital.rodeo/mike/home.git/html/.magic.html
home
git.orbital.rodeoDevine Lu Linvega
in reply to a very weeny construct π • • •a very weeny construct π
in reply to a very weeny construct π • • •haha! success! here's my original goal achieved, teaching my linux box how to execute #uxn roms!
now i can mark executable any uxn rom (with metadata), stick it somewhere on my path like ~/bin, and run it from the terminal or from a "run command" popup or from my window manager
lol yeah it's way more complicated than the recommended method of shell aliases, but still feels pretty cool
https://git.orbital.rodeo/mike/system.git/html/etc/binfmt.d/uxn.conf.html
π€ every uxn rom could become a standalone apt-install-able application using this...
system
git.orbital.rodeoDevine Lu Linvega
in reply to a very weeny construct π • • •