mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-13 06:09:11 +00:00
Get once no need
This commit is contained in:
parent
5618760299
commit
36434edb47
1 changed files with 4 additions and 4 deletions
|
@ -8,16 +8,16 @@ using System.Linq;
|
|||
namespace Ryujinx.Common.SystemInfo
|
||||
{
|
||||
[SupportedOSPlatform("windows")]
|
||||
partial class WindowsSystemInfo : SystemInfo
|
||||
class WindowsSystemInfo : SystemInfo
|
||||
{
|
||||
internal WindowsSystemInfo()
|
||||
{
|
||||
try
|
||||
{
|
||||
using (WmiConnection connection = new WmiConnection())
|
||||
using (WmiConnection connection = new())
|
||||
{
|
||||
(string cpuName, int physicalCores) = GetCpuStatsLight(connection);
|
||||
CpuName = $"{cpuName} ; {physicalCores} physical ; {LogicalCoreCount} logical";
|
||||
(string cpuName, PhysicalCores) = GetCpuStatsLight(connection);
|
||||
CpuName = $"{cpuName} ; {PhysicalCores} physical ; {LogicalCoreCount} logical";
|
||||
(RamTotal, RamAvailable) = GetMemoryStatsWmiLight(connection);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue