Skip to content

Commit

Permalink
Fix: simple/manual installer subfolder checking
Browse files Browse the repository at this point in the history
  • Loading branch information
ZashIn committed Sep 28, 2023
1 parent 88e04bc commit d72bdc7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions games/game_cyberpunk2077.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d72bdc7

Please sign in to comment.