Skip to content

Commit 349cfd9

Browse files
just always return true
1 parent 144608c commit 349cfd9

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

Assets/MixedRealityToolkit/_Core/Utilities/PlatformUtility.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ public static class PlatformUtility
1010
{
1111
public static bool IsPlatformSupported(this RuntimePlatform runtimePlatform, SupportedPlatforms platform)
1212
{
13-
if (platform == (SupportedPlatforms)(-1))
14-
{
15-
return true;
16-
}
17-
1813
if (platform == 0)
1914
{
2015
return false;
@@ -37,18 +32,13 @@ public static bool IsPlatformSupported(this RuntimePlatform runtimePlatform, Sup
3732
case RuntimePlatform.LinuxEditor:
3833
return (platform & SupportedPlatforms.LinuxStandalone) != 0;
3934
default:
40-
return false;
35+
return true;
4136
}
4237
}
4338

4439
#if UNITY_EDITOR
4540
public static bool IsPlatformSupported(this UnityEditor.BuildTarget editorBuildTarget, SupportedPlatforms platform)
4641
{
47-
if (platform == (SupportedPlatforms)(-1))
48-
{
49-
return true;
50-
}
51-
5242
if (platform == 0)
5343
{
5444
return false;
@@ -69,7 +59,7 @@ public static bool IsPlatformSupported(this UnityEditor.BuildTarget editorBuildT
6959
case UnityEditor.BuildTarget.StandaloneLinuxUniversal:
7060
return (platform & SupportedPlatforms.LinuxStandalone) != 0;
7161
default:
72-
return false;
62+
return true;
7363
}
7464
}
7565
#endif

0 commit comments

Comments
 (0)