diff --git a/games/game_subnautica.py b/games/game_subnautica.py index d9463be..5823602 100644 --- a/games/game_subnautica.py +++ b/games/game_subnautica.py @@ -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", @@ -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 (