aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx/Program.cs
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2020-05-07 15:24:33 +0200
committerGitHub <noreply@github.com>2020-05-07 23:24:33 +1000
commit0711ffd52b2d90e35d64359b86000d01ae5b5edc (patch)
tree253e0b83b3a22f7751472e8a6d68bfcebb60d90b /Ryujinx/Program.cs
parent1e687c4eea8832cc12828cedb538f53da88f2042 (diff)
Fix SystemInfo logging to file (#1217)
We currently logs system informations before we load the configuration file. Since the logger use the configuration file (to sets if it should store the logs in a file, etc...), if we print something before the configuration init, the log file doesn't contains any system informations. Now it's fixed.
Diffstat (limited to 'Ryujinx/Program.cs')
-rw-r--r--Ryujinx/Program.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/Ryujinx/Program.cs b/Ryujinx/Program.cs
index 45876da8..08a9859d 100644
--- a/Ryujinx/Program.cs
+++ b/Ryujinx/Program.cs
@@ -43,12 +43,6 @@ namespace Ryujinx
// Initialize Discord integration
DiscordIntegrationModule.Initialize();
- Logger.PrintInfo(LogClass.Application, $"Ryujinx Version: {Version}");
-
- 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");
string globalConfigurationPath = Path.Combine(globalBasePath, "Config.json");
@@ -82,6 +76,12 @@ namespace Ryujinx
ConfigurationState.Instance.ToFileFormat().SaveConfig(globalConfigurationPath);
}
+ Logger.PrintInfo(LogClass.Application, $"Ryujinx Version: {Version}");
+
+ 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}");
+
Profile.Initialize();
Application.Init();