Fix Subnautica installer error (#157)

* Fix Subnautica installer error
* Fix verification Tobey's BepInEx Pack v5.4.23
This commit is contained in:
Zash
2024-10-03 09:50:07 +02:00
committed by GitHub
parent ae4ae8be70
commit 785be77319
+7
View File
@@ -32,6 +32,9 @@ class SubnauticaModDataChecker(BasicModDataChecker):
"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 @@ class SubnauticaModDataChecker(BasicModDataChecker):
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 (