Runcommand shows same name for different emulators
-
I created a new system in EmulationStation with multiple systems (
gb
,gba
,gbc
).In
/opt/retropie/configs/new-system/emulators.cfg
I have the following emulators:lr-gambatte = "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-gambatte/gambatte_libretro.so --config /opt/retropie/configs/gbc/retroarch.cfg %ROM%" lr-gambatte = "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-gambatte/gambatte_libretro.so --config /opt/retropie/configs/gb/retroarch.cfg %ROM%" lr-mgba = "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mgba/mgba_libretro.so --config /opt/retropie/configs/gba/retroarch.cfg %ROM%" lr-mgba = "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mgba/mgba_libretro.so --config /opt/retropie/configs/gbc/retroarch.cfg %ROM%" lr-mgba = "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mgba/mgba_libretro.so --config /opt/retropie/configs/gb/retroarch.cfg %ROM%" lr-vba-next = "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-vba-next/vba_next_libretro.so --config /opt/retropie/configs/gba/retroarch.cfg %ROM%"
As you can see, there are some emulators for different systems that have the same name (e.g.
lr-gambatte
for bothgb
andgbc
).
So, when inruncommand
, I have to choose between twolr-gambatte
and I can't possibly know which one is forgb
and which one is forgbc
.Any tips here? :)
Thanks!
-
@hiulit Why don't you name them differently, based on the system used ? Alternatively, why don't you use a custom Collection instead of creating a new system ?
-
@mitu The thing is, this is for a script I'm developing to create new systems. I know, nowadays, there's the possibility to create new collections (that's basically the same (but slightly different) thing that I'm doing).
The list of emulators is taken from their respectiveemulators.cfg
.
So yeah, I could just rename them based on the system, or maybe just pick the default emulator for each system?Thanks mitu!
-
@mitu Could it be possible to launch a ROM without asking which emulator to use? I mean, when I select a
gb
game, can I know it's agb
game and consequently launch its respective emulator? -
@mitu Can I have more than one
default
in the sameemulators.cfg
?That's a lot of questions :P
-
@hiulit said in Runcommand shows same name for different emulators:
@mitu Could it be possible to launch a ROM without asking which emulator to use? I mean, when I select a
gb
game, can I know it's agb
game and consequently launch its respective emulator?Sure, you can do that, but you'll have to basically add each game to the
emulators.cfg
and specify its emulator, just like when normally choosing the emulator through the Runcommand launch menu. Runcommand does not have a 'match by wildcard', but a 'match by name' based on theemulators.cfg
file. The downside is that each game must be explicitly added with its emulator - you can do this through your script, but any subsequent game added in the new system will have to be processed again by your script.Again, much easier would be to create a Collection and this will automatically taken care of by Emulationstation (i.e. launch the correct emulator). You're basically re-inventing a custom Collection from scratch, but trying to shoehorn it in the Runcommand launch sequence.
Can I have more than one default in the same emulators.cfg?
No, that's not possible.
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.