SDL3 GetPlatform renames Mac OS X to macOS

This commit is contained in:
Ethan Lee 2024-10-15 10:24:03 -04:00
parent 0f297a285b
commit c8ddb68034

View file

@ -149,7 +149,7 @@ namespace RogueCastle
} }
return Path.Combine(osDir, "RogueLegacy"); return Path.Combine(osDir, "RogueLegacy");
} }
else if (os.Equals("Mac OS X")) else if (os.Equals("macOS"))
{ {
string osDir = Environment.GetEnvironmentVariable("HOME"); string osDir = Environment.GetEnvironmentVariable("HOME");
if (string.IsNullOrEmpty(osDir)) if (string.IsNullOrEmpty(osDir))