Skip to content

Commit 19960b2

Browse files
There and back again.
1 parent 349cfd9 commit 19960b2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Assets/MixedRealityToolkit/_Core/Utilities/PlatformUtility.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ public static class PlatformUtility
1010
{
1111
public static bool IsPlatformSupported(this RuntimePlatform runtimePlatform, SupportedPlatforms platform)
1212
{
13-
if (platform == 0)
13+
if (platform == (SupportedPlatforms)(-1))
1414
{
15-
return false;
15+
return true;
1616
}
1717

1818
switch (runtimePlatform)
@@ -32,16 +32,16 @@ public static bool IsPlatformSupported(this RuntimePlatform runtimePlatform, Sup
3232
case RuntimePlatform.LinuxEditor:
3333
return (platform & SupportedPlatforms.LinuxStandalone) != 0;
3434
default:
35-
return true;
35+
return false;
3636
}
3737
}
3838

3939
#if UNITY_EDITOR
4040
public static bool IsPlatformSupported(this UnityEditor.BuildTarget editorBuildTarget, SupportedPlatforms platform)
4141
{
42-
if (platform == 0)
42+
if (platform == (SupportedPlatforms)(-1))
4343
{
44-
return false;
44+
return true;
4545
}
4646

4747
switch (editorBuildTarget)
@@ -59,7 +59,7 @@ public static bool IsPlatformSupported(this UnityEditor.BuildTarget editorBuildT
5959
case UnityEditor.BuildTarget.StandaloneLinuxUniversal:
6060
return (platform & SupportedPlatforms.LinuxStandalone) != 0;
6161
default:
62-
return true;
62+
return false;
6363
}
6464
}
6565
#endif

0 commit comments

Comments
 (0)