From 916611c4684f6c39c4a9ea2beaabfcd68c4a1db2 Mon Sep 17 00:00:00 2001 From: sunshineinabox Date: Thu, 6 Jul 2023 20:35:36 -0700 Subject: [PATCH] Error in previous commit "cpu cores" line was being read but not parsed. Correctly use Ryujinx logger now to actually show message. --- src/Ryujinx.Common/SystemInfo/SystemInfo.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx.Common/SystemInfo/SystemInfo.cs b/src/Ryujinx.Common/SystemInfo/SystemInfo.cs index f17b921b4..4b92b0c9c 100644 --- a/src/Ryujinx.Common/SystemInfo/SystemInfo.cs +++ b/src/Ryujinx.Common/SystemInfo/SystemInfo.cs @@ -99,6 +99,7 @@ namespace Ryujinx.Common.SystemInfo if (cpuCoresLine != null) { string[] parts = cpuCoresLine.Split(':'); + coreCount = int.Parse(parts[1]); } } else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) @@ -124,7 +125,7 @@ namespace Ryujinx.Common.SystemInfo } catch (Exception ex) { - Logger.Error?.Print(LogClass.Application,"An error occurred while trying to get the physical core count: {ex.Message}"); + Logger.Error?.Print(LogClass.Application,$"An error occurred while trying to get the physical core count: {ex.Message}"); } return coreCount;