Jump to content
LaunchBox Community Forums

Relative paths for saves/states not working with Launchbox


breakspirit

Recommended Posts

I have RetroArch configured to use relative paths for my saves and states, like this savefile_directory = "..\..\Saves and States\RetroArch\Saves"

This actual path ends up being "D:\Sync-Emulation\Saves and States\RetroArch\Saves" and this works fine in RetroArch.

When I select a game in Launchbox that uses RetroArch, I am seeing a folder get created at "D:\Saves and States\RetroArch\Saves" which is erroneous.  Notice it is a directory too high in the hierarchy.  Best I can figure, this is happening because of the relative path.  My Launchbox is at "D:\Sync-Emulation\LaunchBox".  Two directories up from that ends up being the root of D drive and it seems to be creating those save folders there.  I think it is referencing my relative paths from Launchbox folder and not RetroArch.

Is that correct that this is what's happening and is there a solution to this?  I figure a workaround in my case would be to nest my Launchbox install a folder deeper but that's not a great fix.  Let me know if I'm missing something stupid please.  Thanks!

Link to comment
Share on other sites

12 hours ago, breakspirit said:

I have RetroArch configured to use relative paths for my saves and states, like this savefile_directory = "..\..\Saves and States\RetroArch\Saves"

This actual path ends up being "D:\Sync-Emulation\Saves and States\RetroArch\Saves" and this works fine in RetroArch.

When I select a game in Launchbox that uses RetroArch, I am seeing a folder get created at "D:\Saves and States\RetroArch\Saves" which is erroneous.  Notice it is a directory too high in the hierarchy.  Best I can figure, this is happening because of the relative path.  My Launchbox is at "D:\Sync-Emulation\LaunchBox".  Two directories up from that ends up being the root of D drive and it seems to be creating those save folders there.  I think it is referencing my relative paths from Launchbox folder and not RetroArch.

Is that correct that this is what's happening and is there a solution to this?  I figure a workaround in my case would be to nest my Launchbox install a folder deeper but that's not a great fix.  Let me know if I'm missing something stupid please.  Thanks!

I'm not 100% certain, but it's likely caused by the way we are parsing the RetroArch config file to determine your save file location. We will look into this and see if there's anything we can do here for a future update.

Link to comment
Share on other sites

  • 1 month later...

This issue remains but I wanted to add that I changed my config to make this work for me and maybe this will help others.  Instead of using relative paths, I am using an absolute path but without a drive letter.  For me, this solves my problem because I use SyncThing and the drive itself was the unknown between systems.  Configuring the path as follows in RetroArch makes this work correctly in LaunchBox

savefile_directory = "\Sync-Emulation\Saves and States\RetroArch\Saves"

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...