Skip to content

Commit

Permalink
Merge pull request #1344 from erri120/fix/smapi-saves
Browse files Browse the repository at this point in the history
Don't manage saves
  • Loading branch information
erri120 committed May 13, 2024
2 parents 1bf5814 + 785caf6 commit 88fcdd9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Games/NexusMods.Games.StardewValley/StardewValley.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,12 @@ protected override Version GetVersion(GameLocatorResult installation)
protected override IReadOnlyDictionary<LocationId, AbsolutePath> GetLocations(IFileSystem fileSystem,
GameLocatorResult installation)
{
// global data files (https://github.com/Pathoschild/SMAPI/blob/8d600e226960a81636137d9bf286c69ab39066ed/src/SMAPI/Framework/ModHelpers/DataHelper.cs#L163-L169)
var stardewValleyAppDataPath = fileSystem
.GetKnownPath(KnownPath.ApplicationDataDirectory)
.Combine("StardewValley");

var result = new Dictionary<LocationId, AbsolutePath>()
{
{
LocationId.Game,
installation.Store == GameStore.XboxGamePass ? installation.Path.Combine("Content") : installation.Path
},
{ LocationId.AppData, stardewValleyAppDataPath.Combine(".smapi") },
{ LocationId.Saves, stardewValleyAppDataPath.Combine("Saves") },
};
return result;
}
Expand Down

0 comments on commit 88fcdd9

Please sign in to comment.