Skip to content

Commit

Permalink
Fix Subnautica installer error (#157)
Browse files Browse the repository at this point in the history
* Fix Subnautica installer error
* Fix verification Tobey's BepInEx Pack v5.4.23
  • Loading branch information
ZashIn authored Oct 3, 2024
1 parent ae4ae8b commit 785be77
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions games/game_subnautica.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def __init__(self, patterns: GlobPatterns | None = None, use_qmods: bool = False
"run_bepinex.sh",
"winhttp.dll",
"QMods",
".doorstop_version", # Added in Tobey's BepInEx Pack for Subnautica v5.4.23
"changelog.txt",
"libdoorstop.dylib",
],
delete=[
"*.txt",
Expand All @@ -53,6 +56,10 @@ def __init__(self, patterns: GlobPatterns | None = None, use_qmods: bool = False
def dataLooksValid(
self, filetree: mobase.IFileTree
) -> mobase.ModDataChecker.CheckReturn:
# fix: single root folders get traversed by Simple Installer
parent = filetree.parent()
if parent is not None and self.dataLooksValid(parent) is self.FIXABLE:
return self.FIXABLE
check_return = super().dataLooksValid(filetree)
# A single unknown folder with a dll file in is to be moved to BepInEx/plugins/
if (
Expand Down

0 comments on commit 785be77

Please sign in to comment.