RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Runcommand shows same name for different emulators

    Scheduled Pinned Locked Moved Help and Support
    runcommandsystemsemulators
    6 Posts 2 Posters 609 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hiulitH
      hiulit
      last edited by

      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 both gb and gbc).
      So, when in runcommand, I have to choose between two lr-gambatte and I can't possibly know which one is for gb and which one is for gbc.

      Any tips here? :)

      Thanks!

      My little contributions to the RetroPie project:

      • Shell-Script-Boilerplate
      • Fun-Facts-Splashscreens
      • Limit-Last-Played-Games
      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @hiulit
        last edited by

        @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 ?

        hiulitH 3 Replies Last reply Reply Quote 1
        • hiulitH
          hiulit @mitu
          last edited by hiulit

          @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 respective emulators.cfg.
          So yeah, I could just rename them based on the system, or maybe just pick the default emulator for each system?

          Thanks mitu!

          My little contributions to the RetroPie project:

          • Shell-Script-Boilerplate
          • Fun-Facts-Splashscreens
          • Limit-Last-Played-Games
          1 Reply Last reply Reply Quote 0
          • hiulitH
            hiulit @mitu
            last edited by

            @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 a gb game and consequently launch its respective emulator?

            My little contributions to the RetroPie project:

            • Shell-Script-Boilerplate
            • Fun-Facts-Splashscreens
            • Limit-Last-Played-Games
            mituM 1 Reply Last reply Reply Quote 0
            • hiulitH
              hiulit @mitu
              last edited by

              @mitu Can I have more than one default in the same emulators.cfg?

              That's a lot of questions :P

              My little contributions to the RetroPie project:

              • Shell-Script-Boilerplate
              • Fun-Facts-Splashscreens
              • Limit-Last-Played-Games
              1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @hiulit
                last edited by

                @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 a gb 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 the emulators.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.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                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.