Skip to content

Commit

Permalink
using right env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Delynith committed Dec 27, 2023
1 parent d289d37 commit 4ed04a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GeometryDashAPI/Data/GameData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public static string ResolveFileName(GameDataType? type)
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
return $@"{Environment.GetEnvironmentVariable("LocalAppData")}\GeometryDash\CC{type}.dat";
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
return $@"/Users/alejandro/Library/Application Support/GeometryDash/CC{type}.dat";
return $@"/Users/{Environment.GetEnvironmentVariable("USER")}/Library/Application Support/GeometryDash/CC{type}.dat";
throw new InvalidOperationException($"can't resolve the directory with the saves on your operating system: '{RuntimeInformation.OSDescription}'. Use certain file name");
}

Expand Down

0 comments on commit 4ed04a0

Please sign in to comment.