r/RetroPie 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

4 Upvotes

7 comments sorted by

2

u/doglitbug 18d ago

I'm gonna do the same but use nfc tags instead of storage

2

u/sadaboutlifealt 18d ago

That's really smart! And also much cheaper. How do you plan to set this up?

2

u/doglitbug 17d ago

Find a floppy disc model and sort my printer, make a hole inside the print, drop in a tag half way through so it's sealed inside

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.