Custom Scripts in Emulation station arguments
-
Hello guys.
Pi Model or other hardware: (RaspberryPi 4B 2GB)
Power Supply used: (official Raspberry Pi power supply)
RetroPie Version Used (4.8 RPI 4/400):
Built From: (Raspberry PI imager v1.7.5)
USB Devices connected: Two 8bitDo SN30 controllers connected with USB.
MicroHD devices: Two Arzopa portable monutors Gamut G1.Where can I read how to use the arguments provided by the custom scripts in emulation station for example we have this in the documentation but the section is quite thin for a noobie like me:
game-start before starting a game %rom_path% %rom_name% %game_name%
So how can I use those within the script that I would like to run?
Thank you in advance.
-
Actually after more searching I found this guide and I answered my questions but I see a difference between the retropie documentation and the one here : https://gitlab.com/es-de/emulationstation-de/-/blob/master/INSTALL.md#custom-event-scripts
In the latter there game-end event passes the rom arguments while in retropie documentation about it those arguments are missing and naturally I cannot pass those arguments. Am I doing something wrong or this is expected behavior ?
Is there a way to pass which game I'm ending as an argument from the game-end event
-
In the latter there game-end event passes the rom arguments while in retropie documentation about it those arguments are missing and naturally I cannot pass those arguments. Am I doing something wrong or this is expected behavior ?
Yes, it's the expected behavior - you're referencing a different EmulationStation fork, not the one used by RetroPie, and they're not the same program.
-
Check the docs for runcommand_onstart.sh, runcommand_onlaunch.sh, runcommand_onend.sh
These are for pre/post game activities and the docs tell you which cli options are passed to them.
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.