Skip to content

Commit

Permalink
Paths
Browse files Browse the repository at this point in the history
  • Loading branch information
YuCat-OVO authored Mar 18, 2024
1 parent 2385ea0 commit aea8992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GameManagement/GameManagementPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private List<Game> UninstallGames(GameMenuItemActionArgs args)
var gameInstallDirectory = game.InstallDirectory;
if (gameInstallDirectory.Contains("{PlayniteDir}"))
{
gameInstallDirectory.Replace("{PlayniteDir}", Paths.ProgramFolder);
gameInstallDirectory.Replace("{PlayniteDir}", _playniteAPI.Paths.ProgramFolder);

Check failure on line 108 in src/GameManagement/GameManagementPlugin.cs

View workflow job for this annotation

GitHub Actions / build

'IPlaynitePathsAPI' does not contain a definition for 'ProgramFolder' and no accessible extension method 'ProgramFolder' accepting a first argument of type 'IPlaynitePathsAPI' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 108 in src/GameManagement/GameManagementPlugin.cs

View workflow job for this annotation

GitHub Actions / build

'IPlaynitePathsAPI' does not contain a definition for 'ProgramFolder' and no accessible extension method 'ProgramFolder' accepting a first argument of type 'IPlaynitePathsAPI' could be found (are you missing a using directive or an assembly reference?)
}
else gameInstallDirectory = game.InstallDirectory;

Expand All @@ -115,7 +115,7 @@ private List<Game> UninstallGames(GameMenuItemActionArgs args)
_logger.LogError("Game {Name} is not installed!", game.Name);
gameIsInstalled = false;
}
if (string.IsNullOrWhiteSpace(game.InstallDirectory))
if (string.IsNullOrWhiteSpace(gameInstallDirectory))
{
_logger.LogError("Directory {Name} is Null or whitespace!", gameInstallDirectory);
gameIsInstalled = false;
Expand Down

0 comments on commit aea8992

Please sign in to comment.