mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-01-10 03:37:20 -03:00
hia: Only reference AppDataManager properties after they've been initialized
This commit is contained in:
parent
5152aae4c4
commit
3f5c2e187e
1 changed files with 9 additions and 9 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue