Skip to content

Commit

Permalink
Fix for basic mod data checker
Browse files Browse the repository at this point in the history
Fixes "unsupported archive for quick installer" error when trying to quick install an archive that has a single folder that gets moved by the data fixer.
  • Loading branch information
jkbcdev committed Aug 14, 2024
1 parent e88d2d2 commit 7f12acf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions basic_features/basic_mod_data_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ def dataLooksValid(
) -> mobase.ModDataChecker.CheckReturn:
status = mobase.ModDataChecker.INVALID

# 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

rp = self._regex_patterns
for entry in filetree:
name = entry.name().casefold()
Expand Down

0 comments on commit 7f12acf

Please sign in to comment.