diff --git a/src/Ryujinx/Headless/HeadlessRyujinx.cs b/src/Ryujinx/Headless/HeadlessRyujinx.cs index 74cf69e57..b2941b884 100644 --- a/src/Ryujinx/Headless/HeadlessRyujinx.cs +++ b/src/Ryujinx/Headless/HeadlessRyujinx.cs @@ -160,7 +160,7 @@ namespace Ryujinx.Headless { configurationPath = appDataConfigurationPath; } - else if (File.Exists(customConfigPath)) + else if (customConfigPath != null && File.Exists(customConfigPath)) { configurationPath = customConfigPath; }