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

    Is there a way to put the save files in a different directory than the ROM?

    Scheduled Pinned Locked Moved Help and Support
    retrodesavessnes
    10 Posts 5 Posters 9.2k 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.
    • B
      Bomblord
      last edited by Bomblord

      I'm toying around with using a retrode to play game roms straight from the cart however while I can get it to read fine writing the save file is a completely different matter. Is there a setting I can change somewhere (I am mildly comfortable with editing files and programming with python) to make the games save in a different directory? I didn't see anything relevant in the emulationstation.cfg file any help on this would be appreciated.

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

        Please give more details about your setup - https://retropie.org.uk/forum/topic/3/read-this-first. What emulator/system are you using ? Saving is emulator dependans.

        1 Reply Last reply Reply Quote 0
        • B
          Bomblord
          last edited by

          Hello and thanks per the information requested in that post:

          Pi Model: pi 3b (non plus)
          Power Supply: Canakit 5v
          RetroPie Version Used: I'm not sure where to check this I apologize
          Built From: I installed it on an SD card using Rufus
          USB Devices connected: Retrode 2
          Controller used: 8bitdo SN30Pro
          Emulator: Default SNES emulator which appears to be lr-snes9x2010

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

            @bomblord Since you're using a RetroArch core for emulator, you need to set the save folder for the lr-snes9x2010 core using the system's retroarch.cfg, in the /opt/retropie/configs/snes/ folder or using the RetroArch RGUI (press Select + X while in game) menu to change the save folders.

            B 1 Reply Last reply Reply Quote 1
            • B
              Bomblord @mitu
              last edited by Bomblord

              @mitu

              Oh that seems simple enough thanks I will try it when I get a chance. Just to be sure, what exactly in the retroarch.cfg file should I edit to make sure the save files are written to a different directory than the roms? Will it be obvious once I open the file?

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

                @bomblord Try the RGUI first, it's easier. Once you set the values use 'Save Core Overrides' to save it permanently. In the config file, I think the settings are called savestate_directory and savefile_directory (both should be a folder location).

                B 1 Reply Last reply Reply Quote 0
                • B
                  Bomblord @mitu
                  last edited by

                  @mitu
                  Awesome thanks for the information that will definitely help.

                  1 Reply Last reply Reply Quote 0
                  • M
                    mark1986
                    last edited by

                    What ive done on my build is create custom retroarch.cfg files for each console and then override the save directories for each console.

                    For e.g. my snes config file in found in the following folder /opt/retropie/configs/snes, inside this folder I have a retroarch.cfg file which has

                    savefile_directory = "/home/pi/RetroPie/saves/snes"
                    savestate_directory = "/home/pi/RetroPie/saves/snes"

                    #include "/opt/retropie/configs/all/retroarch.cfg"

                    I then have a folder names saves @ /home/pi/RetroPie/saves/ which has folders for each console

                    DRA6ND 1 Reply Last reply Reply Quote 1
                    • cyperghostC
                      cyperghost @Bomblord
                      last edited by

                      @bomblord I've written a script for your usecase a few months ago.
                      Take a look here: SavePath a small script to set SRM and Savestate location
                      So you don't need to hack around every single retroarch.cfg.

                      1 Reply Last reply Reply Quote 0
                      • DRA6ND
                        DRA6N @mark1986
                        last edited by

                        @mark1986 would you mind elaborating on how you did this? I have my games booting from USB, and want my saves to go to my USB as well so I can take it out and put it in my handheld and resume save state

                        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.