From 785be7731933aa04579f95bc8d057d46b6529659 Mon Sep 17 00:00:00 2001 From: Zash Date: Thu, 3 Oct 2024 09:50:07 +0200 Subject: [PATCH] Fix Subnautica installer error (#157) * Fix Subnautica installer error * Fix verification Tobey's BepInEx Pack v5.4.23 --- games/game_subnautica.py | 7 +++++++ 1 file changed, 7 insertions(+) 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 (