(2020-07-12, 17:34)Wintermute0110 Wrote: (2020-07-12, 06:22)redshepard Wrote: Hi, i know im late here but im trying to get this working with my retropie setup. The command im using to start my retroarch/rom is retropie's runcommand.sh, that command needs a path to rom as an input.
What i was hopeing to figure out is weather or not AEL has a way to pass that onto runcommand like you passed the path to libretro into your script. Thanks for any help.
Better late than never AEL has a lot of variables you can use in your arguments to call the application. You can have a look at the list here. I will reproduce it here for your convenience:
python:
log_info('_command_run_rom() raw arguments "{0}"'.format(arguments))
arguments = arguments.replace('$categoryID$', categoryID)
arguments = arguments.replace('$launcherID$', launcherID)
arguments = arguments.replace('$romID$', romID)
arguments = arguments.replace('$rom$', ROMFileName.getPath())
arguments = arguments.replace('$romfile$', ROMFileName.getPath())
arguments = arguments.replace('$rompath$', rompath)
arguments = arguments.replace('$rombase$', rombase)
arguments = arguments.replace('$rombasenoext$', rombase_noext)
arguments = arguments.replace('$romtitle$', romtitle)
arguments = arguments.replace('$apppath$', apppath)
# >> Legacy names for argument substitution
arguments = arguments.replace('%rom%', ROMFileName.getPath())
arguments = arguments.replace('%ROM%', ROMFileName.getPath())
If you need a variable not in there tell me with an example what you need, I will create it.
you are awesome man, thankyou for your quick reply.
i still cant figure this out and im sure im messing up on something simple here.
in the cli i can run this to open gba files:
/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ gba /home/pi/RetroPie/roms/gba/ROM
so i have tried making a .sh to launch roms and this is what i have so far:
#!/bin/sh
sudo kodi-send --action="Quit"
/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ $1 $2
kodi
and in AEL under arguments i have:
gba "$rom$"
im not sure what im doing wrong, i thought the $1 and $2 would pas in the gba and /path/to/rom to the runcommand.sh.
thanks again for all your time.