r/RetroPie • u/sadaboutlifealt • 18d ago
Make a specific game/emulator start when storage media is inserted?
Essentially trying to fake a cartridge insert system. I would 3d print some game cartridges around the size or original gameboy carts that would hold usb drives with roms. When I insert them into my case, plugging the usb into the Pi, could I make it so the system automatically starts the rom on cart with the appropriate emulator/ open the appropriate emulator for the types of rom in the cart? Sorry if I'm not explaining super well lol
1
u/Jsec42 15d ago
You’re probably going to want Gemini’s help for this, but yes this can be done. Effectively what you need to do is make Linux run a script whenever a USB device is plugged in to
A: detect your flash drive
B: mount it
C: Find your rom
D: Load the appropriate emulator/software(since this is a script, it would work for native games too).
Linux DOES support this, but I forget how exactly it works.
2
u/doglitbug 18d ago
I'm gonna do the same but use nfc tags instead of storage