0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-22 22:45:46 +00:00

hia: Only reference AppDataManager properties after they've been initialized

This commit is contained in:
Evan Husted 2024-12-11 15:23:31 -06:00
parent 1398dad67c
commit 6f56690c1c

View file

@ -89,15 +89,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)
@ -426,6 +417,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();