Error in previous commit "cpu cores" line was being read but not parsed. Correctly use Ryujinx logger now to actually show message.

This commit is contained in:
sunshineinabox 2023-07-06 20:35:36 -07:00
parent d782d57ca4
commit 916611c468

View file

@ -99,6 +99,7 @@ namespace Ryujinx.Common.SystemInfo
if (cpuCoresLine != null) if (cpuCoresLine != null)
{ {
string[] parts = cpuCoresLine.Split(':'); string[] parts = cpuCoresLine.Split(':');
coreCount = int.Parse(parts[1]);
} }
} }
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
@ -124,7 +125,7 @@ namespace Ryujinx.Common.SystemInfo
} }
catch (Exception ex) 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; return coreCount;