This assignment seems unnecessary

This commit is contained in:
sunshineinabox 2023-07-10 21:10:42 -07:00
parent b7b787af16
commit f7a1f2a651

View file

@ -92,10 +92,9 @@ namespace Ryujinx.Common.SystemInfo
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
coreCount = 0;
foreach (var item in new System.Management.ManagementObjectSearcher("Select NumberOfCores from Win32_Processor").Get())
{
coreCount += int.Parse(item["NumberOfCores"].ToString());
coreCount = int.Parse(item["NumberOfCores"].ToString());
}
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))