Open schmurtzm opened 2 years ago
Implemented here : https://github.com/schmurtzm/libretro-scummvm-miyoo-backend/blob/main/libretro.cpp#L368
For now the scan of sub-directories can crash but the .target shortcut files works great.
ScummVM command line documentation has been updated with more details, the commit : https://github.com/scummvm/scummvm/commit/8a8c00f0725a7c14580796ec9a1613cdcea9f0c3#diff-64f34d61912363d4043e21cce39314689b7adbf6dec090134b443c45a4daf996
And the readable new documentation : https://docs.scummvm.org/en/latest/advanced_topics/command_line.html
Thanks to the ScummVM team which is very reactive and involved ! :)
So it confirms that the best way for the core is to add all games in the Launcher UI and then launch games thanks to their target name.
Here a script that I've created to import automatically the games from scummvm.ini in a front end like retroarch, emulatationstation...or Onion ;) https://github.com/OnionUI/Onion/blob/main/static/packages/Emu/SCUMM%20(ScummVM)/Emu/SCUMMVM/import_gamelist.sh
It just scan the scummvm.ini file and create .target files : very similar to .scummvm files but the core is running it in a different way.
Hi,
Related to this discord conversation on ScummVM discord. I've discovered that if you use -p command arg then in many cases you can't load the config initially defined in the scummvm.ini thanks to the launcher UI of ScummVM.
To reproduce : you configure your keymaps for grim from the launcher / main Menu, then run it by command line -> your keymap is not applied.
Some explanations from the ScummVM dev community :
So the recommended way from ScummVM is to add the games in the launcher (it will populate scummvm.ini with targets) and then run games by command line with scummvm TargetName
For example with grim, after adding game from the launcher, your scummvm.ini contains this :
So to launch the game with by taking into account these settings, you must run it with the target in parameter :
scummvm grim-win
and not as expected (because this won't load your settings, since manually specifying a game via command line basically creates a "temporary target")scummvm -p /mnt/SDCARD/SCUMMVM/GRIM grim:grim
What I recommend it to create a new kind of core shortcut ".target" . For example "Grim_Fandango.target" which contain the text "grim-win". It could be easily parsed in the same way as the game ID before :
This can be done from the launcher manually but as we use a core, it could be nice to add a core option to scan a folder and add all the game in the launcher automatically , for example :
And then the shortcuts could be created automatically from the result of targets in the scummvm.ini file but it is another story ;)