Forgotten

This commit is contained in:
sunshineinabox 2023-07-21 20:03:50 -07:00
parent 31c36afc4c
commit 8abab7689c

View file

@ -114,7 +114,7 @@ namespace Ryujinx.Common.SystemInfo
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
var process = new Process
using (var process = new Process
{
StartInfo = new ProcessStartInfo
{
@ -124,15 +124,14 @@ namespace Ryujinx.Common.SystemInfo
RedirectStandardOutput = true,
CreateNoWindow = true,
}
};
})
{
process.Start();
coreCount = int.Parse(process.StandardOutput.ReadToEnd());
process.WaitForExit();
}
}
}
catch (Exception ex)
{
Logger.Error?.Print(LogClass.Application,$"An error occurred while trying to get the physical core count: {ex.Message}");