mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-13 14:19:12 +00:00
Forgotten
This commit is contained in:
parent
31c36afc4c
commit
8abab7689c
1 changed files with 15 additions and 16 deletions
|
@ -114,7 +114,7 @@ namespace Ryujinx.Common.SystemInfo
|
||||||
}
|
}
|
||||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
||||||
{
|
{
|
||||||
var process = new Process
|
using (var process = new Process
|
||||||
{
|
{
|
||||||
StartInfo = new ProcessStartInfo
|
StartInfo = new ProcessStartInfo
|
||||||
{
|
{
|
||||||
|
@ -124,15 +124,14 @@ namespace Ryujinx.Common.SystemInfo
|
||||||
RedirectStandardOutput = true,
|
RedirectStandardOutput = true,
|
||||||
CreateNoWindow = true,
|
CreateNoWindow = true,
|
||||||
}
|
}
|
||||||
};
|
})
|
||||||
|
{
|
||||||
process.Start();
|
process.Start();
|
||||||
|
|
||||||
coreCount = int.Parse(process.StandardOutput.ReadToEnd());
|
coreCount = int.Parse(process.StandardOutput.ReadToEnd());
|
||||||
|
|
||||||
process.WaitForExit();
|
process.WaitForExit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
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}");
|
||||||
|
|
Loading…
Reference in a new issue