Log Ryujinx Version, OS Name, CPU Name and RAM size (#1102)

* Log Ryujinx version and OS

* Log total RAM size and CPU name

* Requested changes

* requested change

* jd's requested changes

* jd's requested changes
This commit is contained in:
Xpl0itR 2020-04-25 14:01:32 +01:00 committed by GitHub
parent fe5bb439f1
commit a065dc1626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 50 additions and 1 deletions

View file

@ -1,4 +1,5 @@
using Gtk;
using Ryujinx.Common;
using Ryujinx.Common.Logging;
using Ryujinx.Configuration;
using Ryujinx.Debugger.Profiler;
@ -15,7 +16,7 @@ namespace Ryujinx
public static string Version { get; private set; }
public static string ConfigurationPath { get; set; }
static void Main(string[] args)
{
Toolkit.Init(new ToolkitOptions
@ -42,6 +43,12 @@ namespace Ryujinx
// Initialize Discord integration
DiscordIntegrationModule.Initialize();
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}");
string localConfigurationPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Config.json");
string globalBasePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Ryujinx");
string globalConfigurationPath = Path.Combine(globalBasePath, "Config.json");