Skip to content

Commit

Permalink
hia: fix 2 crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
GreemDev committed Dec 11, 2024
1 parent 2fc58d5 commit 1398dad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/Ryujinx/Headless/HeadlessRyujinx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ public static void Initialize()
// Initialize Discord integration.
DiscordIntegrationModule.Initialize();

ReloadConfig();

// Logging system information.
Program.PrintSystemInfo();

Expand Down Expand Up @@ -422,12 +420,14 @@ private static InputConfig HandlePlayerConfiguration(string inputProfileName, st
static void Load(string[] originalArgs, Options option)
{
Initialize();

if (option.InheritConfig)
option.InheritMainConfig(originalArgs, ConfigurationState.Instance, out _inputConfiguration);

AppDataManager.Initialize(option.BaseDataDir);


ReloadConfig();

_virtualFileSystem = VirtualFileSystem.CreateInstance();
_libHacHorizonManager = new LibHacHorizonManager();

Expand Down
2 changes: 1 addition & 1 deletion src/Ryujinx/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static int Main(string[] args)

PreviewerDetached = true;

if (args[0] is "--no-gui" or "nogui")
if (args.Length > 0 && args[0] is "--no-gui" or "nogui")
{
HeadlessRyujinx.Entrypoint(args[1..]);
return 0;
Expand Down

0 comments on commit 1398dad

Please sign in to comment.