Skip to content

Commit a4b3c33

Browse files
authored
update to support launching windows store Subnautica (SubnauticaNitrox#1183)
* Added support for Microsoft Store * Update PlatformDetection.cs changed IsMstore to IsMicrosoftStore * Update LauncherLogic.cs changed IsMStore to IsMicrosoftStore * Update PlatformDetection.cs working on fixing indentations * Update LauncherLogic.cs fixing indentations * Update PlatformDetection.cs like this only tabs used
1 parent d1b6c4d commit a4b3c33

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

NitroxLauncher/LauncherLogic.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,10 @@ private Process StartSubnautica()
298298
{
299299
startInfo.FileName = "steam://run/264710";
300300
}
301-
301+
else if (PlatformDetection.IsMicrosoftStore(subnauticaPath))
302+
{
303+
startInfo.FileName = "ms-xbl-38616e6e:\\";
304+
}
302305
return Process.Start(startInfo);
303306
}
304307

NitroxLauncher/Patching/PlatformDetection.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,13 @@ public static bool IsSteam(string subnauticaPath)
2222
}
2323
return false;
2424
}
25+
public static bool IsMicrosoftStore(string subnauticaPath)
26+
{
27+
if (File.Exists(Path.Combine(subnauticaPath, "appxmanifest.xml")))
28+
{
29+
return true;
30+
}
31+
return false;
32+
}
2533
}
2634
}

0 commit comments

Comments
 (0)