Skip to main content


πŸ€” 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

https://en.wikipedia.org/wiki/Binfmt_misc

#uxn
in reply to a very weeny construct πŸ’€

Unless you have a lot of roms, you might be better off just adding them individually, at least you won't have to type the ".rom" part each time you want to launch left.
This entry was edited (1 year ago)
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

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

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

in reply to a very weeny construct πŸ’€

you've figured it out 😁 It's of course possible to make uxn roms that don't have uxn metadata, but it's highly encouraged to have it. Everything I've made recently follows this pattern and you should do it for your own programs as well πŸ˜€
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...

#uxn

Lo, thar be cookies on this site to keep track of your login. By clicking 'okay', you are CONSENTING to this.

⇧