Reply To: Can Raspbian commands be assigned to buttons in a .map file?

Home Forums RetroPie Project Controller Configuration in RetroPie Can Raspbian commands be assigned to buttons in a .map file? Reply To: Can Raspbian commands be assigned to buttons in a .map file?

#117307
Profile photo of labelwhore
labelwhore
Participant

I’ve got a better idea. If you need this to run every time you quit an emulator, then simply modify the launch commands in your /opt/retropie/configs/{system}/emulators.cfg files.

So in those files you’ll see some lines like kind of this
emulator-name=”/path/to/runcommand.sh command/line/to_start/emulator %ROM%”

All you need to do is add this && moonlight quit <IP> between the %ROM% and the last “. so they’ll look something like this:
emulator-name=”/path/to/runcommand.sh command/line/to_start/emulator %ROM% && moonlight quit <IP>”

If you don’t actually need that to run every time, it’ll produce an error message when you close the emulator and moonlight was not running. To supress that error messag you could modify the line like this instead:

emulator-name=”/path/to/runcommand.sh command/line/to_start/emulator %ROM% && moonlight quit <IP> 2&>1 >/dev/null”

http://www.th3rdwave.com/tracks/
^^ my other hobby

Skip to toolbar