Skip to content

Commit 26ab6a3

Browse files
authored
Changed start error to be more clear when subnautica path is unknown (#1536)
1 parent ffae0f4 commit 26ab6a3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

NitroxLauncher/LauncherLogic.cs

+5
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ internal async Task StartSingleplayerAsync()
186186

187187
internal async Task StartMultiplayerAsync()
188188
{
189+
if (string.IsNullOrWhiteSpace(subnauticaPath) || !Directory.Exists(subnauticaPath))
190+
{
191+
NavigateTo<OptionPage>();
192+
throw new Exception("Location of Subnautica is unknown. Set the path to it in settings.");
193+
}
189194
#if RELEASE
190195
if (Process.GetProcessesByName("Subnautica").Length > 0)
191196
{

0 commit comments

Comments
 (0)