mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-13 14:19:12 +00:00
This assignment seems unnecessary
This commit is contained in:
parent
b7b787af16
commit
f7a1f2a651
1 changed files with 1 additions and 2 deletions
|
@ -92,10 +92,9 @@ namespace Ryujinx.Common.SystemInfo
|
||||||
{
|
{
|
||||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||||
{
|
{
|
||||||
coreCount = 0;
|
|
||||||
foreach (var item in new System.Management.ManagementObjectSearcher("Select NumberOfCores from Win32_Processor").Get())
|
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))
|
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
|
||||||
|
|
Loading…
Reference in a new issue