Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Runtime/Common/SystemHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ internal static bool IsLibraryAvailable(string[] libraries)
/// </summary>
/// <param name="architecture">System architecture</param>
/// <returns>System name</returns>
internal static string Name(string architecture)
internal static string Name()
{
#pragma warning disable CS0618 // Type or member is obsolete
switch (Application.platform)
Expand All @@ -80,9 +80,9 @@ internal static string Name(string architecture)
case RuntimePlatform.OSXPlayer:
return "Mac OS";
case RuntimePlatform.PS3:
return "PS3";
return "ps3";
case RuntimePlatform.PS4:
return "PS4";
return "ps4";
case RuntimePlatform.TizenPlayer:
case RuntimePlatform.SamsungTVPlayer:
return "Samsung TV";
Expand All @@ -93,7 +93,7 @@ internal static string Name(string architecture)
case RuntimePlatform.WiiU:
return "WiiU";
case RuntimePlatform.Switch:
return "Switch";
return "switch";
case RuntimePlatform.WindowsEditor:
case RuntimePlatform.WindowsPlayer:
case RuntimePlatform.WSAPlayerARM:
Expand All @@ -104,7 +104,7 @@ internal static string Name(string architecture)
case RuntimePlatform.XboxOne:
return "Xbox";
default:
return "NaCl";
return Application.platform.ToString();
}
}

Expand Down
2 changes: 1 addition & 1 deletion Runtime/Model/JsonData/BacktraceAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ private void SetMachineAttributes(bool onlyBuiltInAttributes = false)
Attributes["uname.machine"] = cpuArchitecture;
}
//Operating system name = such as "windows"
Attributes["uname.sysname"] = SystemHelper.Name(cpuArchitecture);
Attributes["uname.sysname"] = SystemHelper.Name();

//The version of the operating system
Attributes["uname.version"] = Environment.OSVersion.Version.ToString();
Expand Down