Skip to content

Commit deeddcd

Browse files
committed
uname.sysname update
1 parent 0fc1aa6 commit deeddcd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Runtime/Common/SystemHelper.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

Runtime/Model/JsonData/BacktraceAttributes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)