Skip to content

Commit c62bf22

Browse files
authored
Set system name attribute properly for PS5, and disambiguate Xbox types (#234)
1 parent fb36422 commit c62bf22

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Runtime/Common/SystemHelper.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ internal static string Name()
8383
return "ps3";
8484
case RuntimePlatform.PS4:
8585
return "ps4";
86+
case RuntimePlatform.PS5:
87+
return "ps5";
8688
case RuntimePlatform.TizenPlayer:
8789
case RuntimePlatform.SamsungTVPlayer:
8890
return "Samsung TV";
@@ -101,8 +103,12 @@ internal static string Name()
101103
case RuntimePlatform.WSAPlayerX86:
102104
return "Windows";
103105
case RuntimePlatform.XBOX360:
106+
return "Xbox 360";
104107
case RuntimePlatform.XboxOne:
105-
return "Xbox";
108+
case RuntimePlatform.GameCoreXboxOne:
109+
return "Xbox One";
110+
case RuntimePlatform.GameCoreXboxSeries:
111+
return "Xbox Series";
106112
default:
107113
return Application.platform.ToString();
108114
}

0 commit comments

Comments
 (0)