Skip to content

Commit

Permalink
Fixed a bug with wrong nms path calculation
Browse files Browse the repository at this point in the history
Fixed an issue with wrong nms path detection when the game is installed in the default steam directory
  • Loading branch information
gregkwaste committed Dec 1, 2022
1 parent a68e2e9 commit d2ddfdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MVCore/Utils/NMS_Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ public static string getGameInstallationDir()

try
{
val = fetchSteamGameInstallationDir() as string;
val = fetchSteamGameInstallationDir();
} catch (Exception e) {
val = null;
}
Expand Down Expand Up @@ -648,7 +648,7 @@ private static string fetchSteamGameInstallationDir()
continue;

if (path.Contains(nms_id))
return Path.Combine(steam_path, @"steamapps\common\No Man's Sky\GAMEDATA");
return Path.Combine(steam_path, @"steamapps\common\No Man's Sky");
}

CallBacks.Log("NMS not found in default folders. Searching Steam Libraries...");
Expand Down

0 comments on commit d2ddfdb

Please sign in to comment.