Start game from command line
-
Hi,
is it possible to start a ROM directly from command line? Is there some kind of wrapper provided by Retropie i could use or do i have to address each emulator directly?
I want to add a NFC interface to my case so i can play games by putting fake cartridges near it. I know my way around the hardware, Linux and Python but the Retropie stuff is new to me.
-
Via runcommand
/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ snes /path/to/ROM
Changing snes and rompath accordingly
-
Thank you, this is exactly what i was looking for!
-
I tried it via SSH like an idiot, but of course that does not work. Anyhow, i'd like to share a 'real life' example just in case somebody run's into the same problem with the brackets:
/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ snes '/home/pi/RetroPie/roms/snes/The Legend of Zelda - A Link to the Past (U) [!].smc'
as for the NFC part i'll have to wait for my reader.
-
@Zephalon this forum uses markdown so you need to use an inline code block / code block or else some text is translated as styling - http://commonmark.org/help/ - I fixed your post.
-
just to complete this thread: kill emulator with commandline -> http://pastebin.com/jmNJxMcJ
-
@daeks SIGTERM would be better than SIGKILL and would assure a more clean exit.
-
@buzz I'm a completely new to the Retropie scene, so please forgive my stupidity.
If I run a game from a command line I'm assuming that I have to quit Emulation Station.
If I do that will the config file still be used for the system that I am running from the command line to back out of a game (hotkey+start)?
I'm asking because I do not want to unplug my Pi when I'm done with a game...
Thank you in advance!!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.