From d72bdc7f6eaea077729c4b5d651d6eddc93d2fe7 Mon Sep 17 00:00:00 2001 From: Zash Date: Sun, 30 Jul 2023 15:02:47 +0200 Subject: [PATCH] Fix: simple/manual installer subfolder checking --- games/game_cyberpunk2077.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/games/game_cyberpunk2077.py b/games/game_cyberpunk2077.py index a083d4c..4d1d0ee 100644 --- a/games/game_cyberpunk2077.py +++ b/games/game_cyberpunk2077.py @@ -42,8 +42,10 @@ def dataLooksValid( self, filetree: mobase.IFileTree ) -> mobase.ModDataChecker.CheckReturn: # fix: single root folders get traversed by Simple Installer - if filetree.parent() is not None: - return self.CheckReturn.INVALID + if (parent := filetree.parent()) is not None and self.dataLooksValid( + parent + ) is self.CheckReturn.FIXABLE: + return self.CheckReturn.FIXABLE if ( res := super().dataLooksValid(filetree) ) is self.CheckReturn.INVALID and all(self._valid_redmod(e) for e in filetree):