Skip to content

Commit 102d37b

Browse files
committed
Merge branch 'fix/platformmanager-internals' into fix/populate-platform-deployment-from-product
2 parents 003db0c + 4cf7c4f commit 102d37b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

com.playeveryware.eos/Runtime/Core/PlatformManager.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public enum Platform
6161
Any = Unknown | Windows | Android | XboxOne | XboxSeriesX | iOS | Linux | macOS | PS4 | PS5 | Switch | Steam
6262
}
6363

64-
private readonly struct PlatformInfo
64+
internal readonly struct PlatformInfo
6565
{
6666
public string FullName { get; }
6767
public string ConfigFileName { get; }
@@ -91,7 +91,7 @@ public static PlatformInfo Create<T>(string fullName, string configFileName, str
9191
/// <summary>
9292
/// Private collection to store information about each platform.
9393
/// </summary>
94-
private static IDictionary<Platform, PlatformInfo> PlatformInformation = new Dictionary<Platform, PlatformInfo>();
94+
internal static IDictionary<Platform, PlatformInfo> PlatformInformation = new Dictionary<Platform, PlatformInfo>();
9595

9696
/// <summary>
9797
/// Returns a list of platforms for which configuration values can be
@@ -443,7 +443,12 @@ public static string GetConfigFileName(Platform platform)
443443
/// <returns>Full name of platform.</returns>
444444
public static string GetFullName(Platform platform)
445445
{
446-
return PlatformInformation[platform].FullName;
446+
if (PlatformInformation.TryGetValue(platform, out PlatformInfo value))
447+
{
448+
return value.FullName;
449+
}
450+
451+
return platform.ToString();
447452
}
448453
}
449454
}

0 commit comments

Comments
 (0)