From 3f5c2e187ec5b5e5dba8cb687a97499c7428b759 Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Wed, 11 Dec 2024 15:23:31 -0600 Subject: [PATCH] hia: Only reference AppDataManager properties after they've been initialized --- src/Ryujinx/Headless/HeadlessRyujinx.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Ryujinx/Headless/HeadlessRyujinx.cs b/src/Ryujinx/Headless/HeadlessRyujinx.cs index 1f27d1a0e..77f930e7e 100644 --- a/src/Ryujinx/Headless/HeadlessRyujinx.cs +++ b/src/Ryujinx/Headless/HeadlessRyujinx.cs @@ -90,15 +90,6 @@ namespace Ryujinx.Headless // Logging system information. Program.PrintSystemInfo(); - - // Check if keys exists. - if (!File.Exists(Path.Combine(AppDataManager.KeysDirPath, "prod.keys"))) - { - if (!(AppDataManager.Mode == AppDataManager.LaunchMode.UserProfile && File.Exists(Path.Combine(AppDataManager.KeysDirPathUser, "prod.keys")))) - { - Logger.Error?.Print(LogClass.Application, "Keys not found"); - } - } } public static void Entrypoint(string[] args) @@ -427,6 +418,15 @@ namespace Ryujinx.Headless AppDataManager.Initialize(option.BaseDataDir); + // Check if keys exists. + if (!File.Exists(Path.Combine(AppDataManager.KeysDirPath, "prod.keys"))) + { + if (!(AppDataManager.Mode == AppDataManager.LaunchMode.UserProfile && File.Exists(Path.Combine(AppDataManager.KeysDirPathUser, "prod.keys")))) + { + Logger.Error?.Print(LogClass.Application, "Keys not found"); + } + } + ReloadConfig(); _virtualFileSystem = VirtualFileSystem.CreateInstance();