We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26949bd commit 66ec8c1Copy full SHA for 66ec8c1
1 file changed
games/game_stardewvalley.py
@@ -14,13 +14,13 @@ def __init__(self):
14
def dataLooksValid(
15
self, tree: mobase.IFileTree
16
) -> mobase.ModDataChecker.CheckReturn:
17
- count_ok = 0
+
18
for e in tree:
19
- if e.isDir():
20
- count_ok = e.exists("manifest.json", mobase.IFileTree.FILE) # type: ignore
+ if e.isDir() and e.exists( # type: ignore
+ "manifest.json", mobase.IFileTree.FILE
21
+ ):
22
+ return mobase.ModDataChecker.VALID
23
- if count_ok > 0:
- return mobase.ModDataChecker.VALID
24
return mobase.ModDataChecker.INVALID
25
26
0 commit comments