Add functionality to symlink save data from another game's prefix, a few games would benefit from this #217
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some games have functionality that is dependent on having save data for another game, which works fine on Windows, but needs workarounds on Proton due to how it handles stuff that is stored in the user folder rather than the game's own
steamapps/common
folder (usually under Documents or My Games). This leads to the game not detecting the save data for the other game despite it being there, because it's in a different prefix.This pull request adds a new function for
util
that can be used to automate a symlinking workaround to accomplish this.This will only work if you have the other game installed from Steam.
How this works
steamapps/libraryfolders.vdf
file to find locations of known library folders.compatdata/(APPID)
folder in it.Games impacted
How to use the Function
Parameters:
from_appid
: The Steam app id for the game whose save data is desired in the prefix for the game you're trying to play.relative_location
: The location in thedrive_c/users/steamuser
folder where the game expects the save data for the other game to be. You can find this by looking up the game on PC Gaming Wiki.This function will have to be used in the fix scripts for each of the games that need it.