Bläddra i källkod

macOS: Use user-friendly macOS version string (#5838)

* use user-friendly macOS version string rather than kernel version

* add build identifier string

---------

Co-authored-by: jcm <butt@butts.com>
jcm 2 år sedan
förälder
incheckning
171b46ef49
1 ändrade filer med 7 tillägg och 0 borttagningar
  1. 7 0
      src/Ryujinx.Common/SystemInfo/MacOSSystemInfo.cs

+ 7 - 0
src/Ryujinx.Common/SystemInfo/MacOSSystemInfo.cs

@@ -12,6 +12,13 @@ namespace Ryujinx.Common.SystemInfo
     {
         internal MacOSSystemInfo()
         {
+            if (SysctlByName("kern.osversion", out string buildRevision) != 0)
+            {
+                buildRevision = "Unknown Build";
+            }
+
+            OsDescription = $"macOS {Environment.OSVersion.Version} ({buildRevision}) ({RuntimeInformation.OSArchitecture})";
+
             string cpuName = GetCpuidCpuName();
 
             if (cpuName == null && SysctlByName("machdep.cpu.brand_string", out cpuName) != 0)