Skip to content

Commit 785be77

Browse files
authored
Fix Subnautica installer error (#157)
* Fix Subnautica installer error * Fix verification Tobey's BepInEx Pack v5.4.23
1 parent ae4ae8b commit 785be77

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

games/game_subnautica.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ def __init__(self, patterns: GlobPatterns | None = None, use_qmods: bool = False
3232
"run_bepinex.sh",
3333
"winhttp.dll",
3434
"QMods",
35+
".doorstop_version", # Added in Tobey's BepInEx Pack for Subnautica v5.4.23
36+
"changelog.txt",
37+
"libdoorstop.dylib",
3538
],
3639
delete=[
3740
"*.txt",
@@ -53,6 +56,10 @@ def __init__(self, patterns: GlobPatterns | None = None, use_qmods: bool = False
5356
def dataLooksValid(
5457
self, filetree: mobase.IFileTree
5558
) -> mobase.ModDataChecker.CheckReturn:
59+
# fix: single root folders get traversed by Simple Installer
60+
parent = filetree.parent()
61+
if parent is not None and self.dataLooksValid(parent) is self.FIXABLE:
62+
return self.FIXABLE
5663
check_return = super().dataLooksValid(filetree)
5764
# A single unknown folder with a dll file in is to be moved to BepInEx/plugins/
5865
if (

0 commit comments

Comments
 (0)