|
@@ -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)
|