Ability to prevent runcommand from starting with runcommand-onstart.sh ?
-
Hi fine folks!,
i am looking for a way to use the runcommand-onstart.sh script to prevent a game from being loaded and returning back to EM/attract mode.
Basicly what i want todo is password protect certain games with a py script and when the password is wrong it will go back to the menu. Would any of you know a good solution? I know the runcommand user menu scrripts can actually send a exit code and end runcommand but can the onstart or onlaunch script do that too ? -
@Mangaclub maybe something like:
python3 /path/to/password.py || pkill -f runcommand.sh
-
@sleve_mcdichael Ohh thanks! i will give that a try
-
i actually made a function for this like:
def stop_runcommand():
os.system("pkill -f runcommand.sh")wich works and kills runcommand and even returns you to attract mode.
thanks!
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.