File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ internal static bool IsLibraryAvailable(string[] libraries)
6464 /// </summary>
6565 /// <param name="architecture">System architecture</param>
6666 /// <returns>System name</returns>
67- internal static string Name ( string architecture )
67+ internal static string Name ( )
6868 {
6969#pragma warning disable CS0618 // Type or member is obsolete
7070 switch ( Application . platform )
@@ -80,9 +80,9 @@ internal static string Name(string architecture)
8080 case RuntimePlatform . OSXPlayer :
8181 return "Mac OS" ;
8282 case RuntimePlatform . PS3 :
83- return "PS3 " ;
83+ return "ps3 " ;
8484 case RuntimePlatform . PS4 :
85- return "PS4 " ;
85+ return "ps4 " ;
8686 case RuntimePlatform . TizenPlayer :
8787 case RuntimePlatform . SamsungTVPlayer :
8888 return "Samsung TV" ;
@@ -93,7 +93,7 @@ internal static string Name(string architecture)
9393 case RuntimePlatform . WiiU :
9494 return "WiiU" ;
9595 case RuntimePlatform . Switch :
96- return "Switch " ;
96+ return "switch " ;
9797 case RuntimePlatform . WindowsEditor :
9898 case RuntimePlatform . WindowsPlayer :
9999 case RuntimePlatform . WSAPlayerARM :
@@ -104,7 +104,7 @@ internal static string Name(string architecture)
104104 case RuntimePlatform . XboxOne :
105105 return "Xbox" ;
106106 default :
107- return "NaCl" ;
107+ return Application . platform . ToString ( ) ;
108108 }
109109 }
110110
Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ private void SetMachineAttributes(bool onlyBuiltInAttributes = false)
279279 Attributes [ "uname.machine" ] = cpuArchitecture ;
280280 }
281281 //Operating system name = such as "windows"
282- Attributes [ "uname.sysname" ] = SystemHelper . Name ( cpuArchitecture ) ;
282+ Attributes [ "uname.sysname" ] = SystemHelper . Name ( ) ;
283283
284284 //The version of the operating system
285285 Attributes [ "uname.version" ] = Environment . OSVersion . Version . ToString ( ) ;
You can’t perform that action at this time.
0 commit comments