Skip to content

Commit

Permalink
hia: Only reference AppDataManager properties after they've been init…
Browse files Browse the repository at this point in the history
…ialized
  • Loading branch information
GreemDev committed Dec 11, 2024
1 parent 1398dad commit 6f56690
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Ryujinx/Headless/HeadlessRyujinx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,6 @@ public static void Initialize()

// 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)
Expand Down Expand Up @@ -426,6 +417,15 @@ static void Load(string[] originalArgs, Options option)

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();
Expand Down

0 comments on commit 6f56690

Please sign in to comment.