I'm the developer of a game and emulation launcher and I'm currently in the works of integrating ScummVM with its command line interface.
Please bear with me if I missed something but here are my current observations:
In order to properly launch a game via command line you have to either:
(1) know the ScummVM internal gameid (game engine id?) AND the path to the data files
or
(2) use a target string from a scummvm.ini (which is the result of a scan from ScummVM's UI)
Now from the viewpoint of a game launcher, if you want to implement
launching ScummVM via approach (1): you could let the user provide a path to add a game BUT the user also has to decide which gameid should be used
or with
launching ScummVM via approach (2): the user has to pre-scan via ScummVM UI and provide the scummvm.ini to the launcher
I know that D-Fend Reloaded for example goes with approach (1). Currently, I'm more convinced that approach (2) would be more safe, because the user doesn't falsely assume an incompatible gameid with a chosen file path.
Anyways, here are my questions:
(A) Do I miss something here (i.e. are both approaches the only ones)?
(B) Could ScummVM provide a command line option to perform a scan (Add Game...) and quit afterwards? Of course in this case a path should also be provided via command line option as well as an optional alternative scummvm.ini location.
(C) If (B) is possible, would a mass scan (Mass Add...) be also possible via command line option?
With command line options from (B) and (C) the user could choose a path from the launcher and anything else could be scanned automatically. It would be a great solution

Oh btw. the launcher I'm working on is https://metropolis-launcher.net
cheers
-- MK2k