mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-25 03:25:13 +00:00
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>
This commit is contained in:
parent
56fe2ff535
commit
171b46ef49
1 changed files with 7 additions and 0 deletions
|
@ -12,6 +12,13 @@ namespace Ryujinx.Common.SystemInfo
|
||||||
{
|
{
|
||||||
internal MacOSSystemInfo()
|
internal MacOSSystemInfo()
|
||||||
{
|
{
|
||||||
|
if (SysctlByName("kern.osversion", out string buildRevision) != 0)
|
||||||
|
{
|
||||||
|
buildRevision = "Unknown Build";
|
||||||
|
}
|
||||||
|
|
||||||
|
OsDescription = $"macOS {Environment.OSVersion.Version} ({buildRevision}) ({RuntimeInformation.OSArchitecture})";
|
||||||
|
|
||||||
string cpuName = GetCpuidCpuName();
|
string cpuName = GetCpuidCpuName();
|
||||||
|
|
||||||
if (cpuName == null && SysctlByName("machdep.cpu.brand_string", out cpuName) != 0)
|
if (cpuName == null && SysctlByName("machdep.cpu.brand_string", out cpuName) != 0)
|
||||||
|
|
Loading…
Reference in a new issue