mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-23 03:25:46 +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.
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue