Refactor SystemInfo and implement macOS system info backend (#1177)

This commit is contained in:
Mary 2020-05-04 04:15:27 +02:00 committed by GitHub
parent 4c54f36c38
commit 651a07c6c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 187 additions and 45 deletions

View file

@ -1,6 +1,6 @@
using Gtk;
using Ryujinx.Common;
using Ryujinx.Common.Logging;
using Ryujinx.Common.SystemInfo;
using Ryujinx.Configuration;
using Ryujinx.Debugger.Profiler;
using Ryujinx.Ui;
@ -45,9 +45,9 @@ namespace Ryujinx
Logger.PrintInfo(LogClass.Application, $"Ryujinx Version: {Version}");
Logger.PrintInfo(LogClass.Application, $"Operating System: {SystemInfo.OsDescription}");
Logger.PrintInfo(LogClass.Application, $"CPU: {SystemInfo.CpuName}");
Logger.PrintInfo(LogClass.Application, $"Total RAM: {SystemInfo.RamSize}");
Logger.PrintInfo(LogClass.Application, $"Operating System: {SystemInfo.Instance.OsDescription}");
Logger.PrintInfo(LogClass.Application, $"CPU: {SystemInfo.Instance.CpuName}");
Logger.PrintInfo(LogClass.Application, $"Total RAM: {SystemInfo.Instance.RamSizeInMB}");
string localConfigurationPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Config.json");
string globalBasePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Ryujinx");