common: Fix last warning in SystemInfo (#1757)
* common: Fix last warning in SystemInfo * info to Info * fix MacOSSystemInfo file name by delete the file * MacOSSysteminfo to MacOSSystemInfo
This commit is contained in:
parent
a04a1b663d
commit
5e6dc37aed
4 changed files with 15 additions and 26 deletions
|
@ -5,12 +5,12 @@ using System.Runtime.Versioning;
|
|||
namespace Ryujinx.Common.SystemInfo
|
||||
{
|
||||
[SupportedOSPlatform("linux")]
|
||||
internal class LinuxSysteminfo : SystemInfo
|
||||
internal class LinuxSystemInfo : SystemInfo
|
||||
{
|
||||
public override string CpuName { get; }
|
||||
public override ulong RamSize { get; }
|
||||
|
||||
public LinuxSysteminfo()
|
||||
public LinuxSystemInfo()
|
||||
{
|
||||
CpuName = File.ReadAllLines("/proc/cpuinfo").Where(line => line.StartsWith("model name")).ToList()[0].Split(":")[1].Trim();
|
||||
RamSize = ulong.Parse(File.ReadAllLines("/proc/meminfo")[0].Split(":")[1].Trim().Split(" ")[0]) * 1024;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue