diff options
author | jcm <john.moody@coloradocollege.edu> | 2023-10-24 17:37:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 00:37:13 +0200 |
commit | 171b46ef49f479a5eb30b9769eab3af452092641 (patch) | |
tree | 7ed095f29b27a5d3776d1f1e4cbb355186325ac3 | |
parent | 56fe2ff535560a5b7e6461f5925479848b9a9994 (diff) |
macOS: Use user-friendly macOS version string (#5838)1.1.1064
* use user-friendly macOS version string rather than kernel version
* add build identifier string
---------
Co-authored-by: jcm <butt@butts.com>
-rw-r--r-- | src/Ryujinx.Common/SystemInfo/MacOSSystemInfo.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Ryujinx.Common/SystemInfo/MacOSSystemInfo.cs b/src/Ryujinx.Common/SystemInfo/MacOSSystemInfo.cs index 98a0d8ab..a968ad17 100644 --- a/src/Ryujinx.Common/SystemInfo/MacOSSystemInfo.cs +++ b/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) |