Skip to content

Commit

Permalink
Fix Xbox Game Pass path (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
erri120 authored May 28, 2024
1 parent 16f7484 commit 86f482e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Games/NexusMods.Games.StardewValley/StardewValley.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,11 @@ protected override Version GetVersion(GameLocatorResult installation)
}
}

protected override IReadOnlyDictionary<LocationId, AbsolutePath> GetLocations(IFileSystem fileSystem,
GameLocatorResult installation)
protected override IReadOnlyDictionary<LocationId, AbsolutePath> GetLocations(IFileSystem fileSystem, GameLocatorResult installation)
{
var result = new Dictionary<LocationId, AbsolutePath>()
{
{
LocationId.Game,
installation.Store == GameStore.XboxGamePass ? installation.Path.Combine("Content") : installation.Path
},
{ LocationId.Game, installation.Path },
};
return result;
}
Expand Down

0 comments on commit 86f482e

Please sign in to comment.