2021-11-02, 20:19
(2021-11-02, 15:34)Wintermute0110 Wrote:Thanks for the list! I manage to get it working with the argument "$rombasenoext$". Now every game I launch via PCSX2 will have its own ini-folder.(2021-11-02, 13:12)Finalzero Wrote: Hello there, I wanted to know what kind of arguments can be used by this add-on. I tried to set up PCSX2 in a way that it should load different ini-files depending on the game that is being launched. So my command line would look like this:
"%rom%" --cfgpath="inis\%romname%" --nogui --fullscreen
But this doesn't work. Is %romname% even supported by AEL? Or is there a different variable I have to use?
Here is the list of variables you can use in the arguments.
python:
# ~~~~ Argument substitution ~~~~~
log_info('_command_run_rom() raw arguments "{}"'.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())
log_info('_command_run_rom() final arguments "{}"'.format(arguments))