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

    RetroPie Boot into a Single ROM

    Scheduled Pinned Locked Moved Help and Support
    helpemulationstaionretropieautostart rom
    37 Posts 9 Posters 16.8k 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.
    • mediamogulM
      mediamogul Global Moderator @Healy_um
      last edited by mediamogul

      @Healy_um

      Can you post the full contents of your autostart.sh?

      RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

      H 1 Reply Last reply Reply Quote 0
      • H
        Healy_um @mediamogul
        last edited by

        @mediamogul Sure it's:
        /opt/retropie/supplementary/runcommand/runcommand.sh 0 SYS gba ~/RetroPie/rom/gba/Pokemon Fire Red.gba && emulationstation

        mediamogulM 1 Reply Last reply Reply Quote 1
        • TMNTturtlguyT
          TMNTturtlguy
          last edited by

          @Healy_um Ok, this might be crazy talk, so you might want to back up your system if you haven't already. But what if we tried this:

          I believe that ES is launched from the following: /etc/profile.d/10-retropie.sh

          That file looks like this:

             if [ "`tty`" = "/dev/tty1" ]; then
                      bash "/opt/retropie/configs/all/autostart.sh"
             fi
          

          What if you revised it to this:

             if [ "`tty`" = "/dev/tty1" ]; then
                      bash "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-gpsp/gpsp_libretro.so --config /opt/retropie/configs/gba/retroarch.cfg %ROM%"
             fi
          

          This would stop the retropie from starting up ES and start up lr-gpsp instead. Now my only question is will it still look to your autostart.sh to start the Pokemon rom? Not sure you can call out the rom in the code above?

          @mediamogul am on onto something here? or way off base?

          1 Reply Last reply Reply Quote 1
          • mediamogulM
            mediamogul Global Moderator @Healy_um
            last edited by

            @Healy_um

            @TMNTturtlguy's idea sounds interesting and you might also try changing your command to:

            /opt/retropie/supplementary/runcommand/runcommand.sh 0 SYS gba ~/RetroPie/rom/gba/Pokemon\ Fire\ Red.gba && emulationstation
            

            @TMNTturtlguy

            Ok, this might be crazy talk

            That's the best kind of talk.

            RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

            TMNTturtlguyT H 2 Replies Last reply Reply Quote 1
            • TMNTturtlguyT
              TMNTturtlguy @mediamogul
              last edited by

              @mediamogul hmmmm....looking at my code more, we are telling it to launch lr-gpsp and for lr-gpsp to look to retroach.cfg for how to run the emulator. This will get us to the emulator, but not rom.

              mediamogulM 1 Reply Last reply Reply Quote 0
              • mediamogulM
                mediamogul Global Moderator @TMNTturtlguy
                last edited by mediamogul

                @TMNTturtlguy

                I believe you'd just replace %ROM% with the full path to the ROM, adding a backslash wherever there's a space.

                RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                K 1 Reply Last reply Reply Quote 2
                • TMNTturtlguyT
                  TMNTturtlguy
                  last edited by

                  @Healy_um If you are up to it, give this a try, go to: /etc/profile.d and open this file in notepad ++ 10-retropie.sh

                  Replace if lines with the code below:

                   if [ "`tty`" = "/dev/tty1" ]; then
                          bash "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-gpsp/gpsp_libretro.so --config /opt/retropie/configs/gba/retroarch.cfg /RetroPie/rom/gba/Pokemon\ fire\ Red.gba
                   fi
                  

                  Let us know if it works!

                  1 Reply Last reply Reply Quote 1
                  • T
                    tikiandskull
                    last edited by

                    Maybe that can help link text

                    TMNTturtlguyT 1 Reply Last reply Reply Quote 0
                    • TMNTturtlguyT
                      TMNTturtlguy @tikiandskull
                      last edited by

                      @tikiandskull I think the link you sent just tells users how to enter the mame gui screen by hitting tab. I read through the post and i do not believe the poster actually tells anyone how to boot directly into a single game. Thanks

                      1 Reply Last reply Reply Quote 0
                      • H
                        Healy_um @mediamogul
                        last edited by

                        @mediamogul It worked!!! Thanks everyone who helped :) really didn't expect to get this working so fast! Thanks again all

                        mediamogulM 1 Reply Last reply Reply Quote 2
                        • mediamogulM
                          mediamogul Global Moderator @Healy_um
                          last edited by

                          @Healy_um

                          I'm glad to hear it. For the benefit of others who might follow along behind you, can you specify which tactic worked for you?

                          RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                          H 1 Reply Last reply Reply Quote 0
                          • H
                            Healy_um @mediamogul
                            last edited by

                            @mediamogul I've just edited the first post to include it :)

                            mediamogulM 1 Reply Last reply Reply Quote 1
                            • mediamogulM
                              mediamogul Global Moderator @Healy_um
                              last edited by mediamogul

                              @Healy_um

                              Nice! Glad to see you're up and running.

                              RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                              TMNTturtlguyT 1 Reply Last reply Reply Quote 0
                              • TMNTturtlguyT
                                TMNTturtlguy @mediamogul
                                last edited by

                                @mediamogul nice work on the solution! much easier than mine was

                                mediamogulM L 2 Replies Last reply Reply Quote 1
                                • mediamogulM
                                  mediamogul Global Moderator @TMNTturtlguy
                                  last edited by

                                  @TMNTturtlguy

                                  I'm always thankful when an easy solution pays off. More often than not I usually find that I've blown thrown 72 potential easy solutions, when a more complex approach would have ultimately saved time.

                                  RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                                  1 Reply Last reply Reply Quote 0
                                  • L
                                    LinuxArcadeGuy
                                    last edited by LinuxArcadeGuy

                                    this is the line that works:
                                    /opt/retropie/supplementary/runcommand/runcommand.sh 0 SYS capcom ~/RetroPie/roms/capcom/sfiii2.zip

                                    backup your autostart.sh by duplicating it to autostart.sh.bak in WinSCP

                                    customize to your own directory structure and rom name omit spaces or use \ like: Street\ Fighter\ 2.zip

                                    1 Reply Last reply Reply Quote 0
                                    • L
                                      LinuxArcadeGuy @TMNTturtlguy
                                      last edited by

                                      @tmntturtlguy question that is right up your alley... looking to run a rom directly from main ES menu, versus opening a directory list... is this possible, thru my research I have found no way to do this, and a few nay-sayers...

                                      What do you think?

                                      mediamogulM 1 Reply Last reply Reply Quote 0
                                      • mediamogulM
                                        mediamogul Global Moderator @LinuxArcadeGuy
                                        last edited by

                                        @linuxarcadeguy said in RetroPie Boot into a Single ROM:

                                        looking to run a rom directly from main ES menu, versus opening a directory list... is this possible, thru my research I have found no way to do this, and a few nay-sayers...

                                        Emulation Station is open source, so of course it could be done. However, you'd have to add the basic functionality for it first.

                                        RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                                        1 Reply Last reply Reply Quote 0
                                        • mituM
                                          mitu Global Moderator
                                          last edited by

                                          What exactly do you want to do ? You found a way to launch a single ROM on boot, if you want to go back to ES, just add the ES start command to the autostart.sh file, right after the runcommand you're using.

                                          mediamogulM 1 Reply Last reply Reply Quote 0
                                          • mediamogulM
                                            mediamogul Global Moderator @mitu
                                            last edited by mediamogul

                                            @mitu

                                            I believe he's wanting to launch an item by selecting a system heading from the carousel. The practical uses would be pretty limited, but if memory serves, people are usually looking to launch Kodi directly without selecting a launch script from the resulting directory.

                                            RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                                            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.