Cross-Ref over emulators and romdirs?
-
I know [1] and the accompanied script
admin/stats.sh
but is there already a script which does create a cross-reference between which folder below~/RetroPie/roms/
is utilized by which emulator?If not it is not a big deal to create such x-ref, I just want to save some cycles / do not want to reinvent the wheel.
I need the x-ref for another topic I am working on.
TIA
-
No, there's no cross-reference.
EDIT: to expand a bit.
The association is done in each scriptmodule, by usingaddSystem
during theconfigure
phase (we're excluding ports which have a single folder). So you can search each scriptmodule foraddSystem
and - with some text manipulation - get a list of links (emulator -> systems). However, the issue is that some emulators supporting more than 1 system have parametrized this call so instead of ofaddSystem "snes"
you'll see
for system in "arcade dreamcast x1"; do addSystem "$system" done
which doesn't work anymore with the approach above.
-
Et voilĂ ! [1] Code could be more elegant, but it does the trick. Comments/corrections welcomed.
Thanks for your extra hints, @mitu .
[1] https://gist.github.com/Gemba/410710b53be04a9de16d190b988eca56
-
Nice. Now make it a one-liner :).
-
Maybe this way around: As the information is dug up now. Why not adding an extra
rp_module_systems
to the scriptmodules properties which holds the folders/systems? That way the code for creating the xref could be reduced drastically. -
That may not be a bad idea.
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.