Skip to content

Commit

Permalink
Mac platform identifier changed in SDL3
Browse files Browse the repository at this point in the history
  • Loading branch information
M. P. Halpin authored and flibitijibibo committed Oct 15, 2024
1 parent 23cba66 commit 1bfdc8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/FNAPlatform/SDL3_FNAPlatform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public static string ProgramInit(LaunchParameters args)
* screen may not be covering the whole display.
*/
SupportsGlobalMouse = ( OSVersion.Equals("Windows") ||
OSVersion.Equals("Mac OS X") ||
OSVersion.Equals("macOS") ||
videoDriver.Equals("x11") );

// Only iOS and Android care about device orientation.
Expand Down Expand Up @@ -334,7 +334,7 @@ public static GameWindow CreateWindow()
if (cachePath == null) // Empty is a valid value
{
if ( OSVersion.Equals("Windows") ||
OSVersion.Equals("Mac OS X") ||
OSVersion.Equals("macOS") ||
OSVersion.Equals("Linux") ||
OSVersion.Equals("FreeBSD") ||
OSVersion.Equals("OpenBSD") ||
Expand Down Expand Up @@ -1381,7 +1381,7 @@ private static string GetBaseDirectory()
{
// If your platform uses a CLR, you want to be in this list!
if ( OSVersion.Equals("Windows") ||
OSVersion.Equals("Mac OS X") ||
OSVersion.Equals("macOS") ||
OSVersion.Equals("Linux") ||
OSVersion.Equals("FreeBSD") ||
OSVersion.Equals("OpenBSD") ||
Expand Down Expand Up @@ -1441,7 +1441,7 @@ public static string GetStorageRoot()
exeName
);
}
if (OSVersion.Equals("Mac OS X"))
if (OSVersion.Equals("macOS"))
{
string osConfigDir = Environment.GetEnvironmentVariable("HOME");
if (String.IsNullOrEmpty(osConfigDir))
Expand Down

0 comments on commit 1bfdc8c

Please sign in to comment.