mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-01-10 18:41:59 +00:00
hia: Only reference AppDataManager properties after they've been initialized
This commit is contained in:
parent
1398dad67c
commit
6f56690c1c
1 changed files with 9 additions and 9 deletions
|
@ -89,15 +89,6 @@ namespace Ryujinx.Headless
|
||||||
|
|
||||||
// Logging system information.
|
// Logging system information.
|
||||||
Program.PrintSystemInfo();
|
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)
|
public static void Entrypoint(string[] args)
|
||||||
|
@ -426,6 +417,15 @@ namespace Ryujinx.Headless
|
||||||
|
|
||||||
AppDataManager.Initialize(option.BaseDataDir);
|
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();
|
ReloadConfig();
|
||||||
|
|
||||||
_virtualFileSystem = VirtualFileSystem.CreateInstance();
|
_virtualFileSystem = VirtualFileSystem.CreateInstance();
|
||||||
|
|
Loading…
Reference in a new issue