File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111
1212class StalkerAnomalyModDataChecker (mobase .ModDataChecker ):
13+ _valid_folders : List [str ] = [
14+ "db" ,
15+ "appdata" ,
16+ "gamedata" ,
17+ ]
18+
1319 def __init__ (self ):
1420 super ().__init__ ()
1521
1622 def dataLooksValid (
1723 self , tree : mobase .IFileTree
1824 ) -> mobase .ModDataChecker .CheckReturn :
19- if tree .exists ("db" ) or tree .exists ("appdata" ) or tree .exists ("gamedata" ):
20- return mobase .ModDataChecker .VALID
21- else :
22- return mobase .ModDataChecker .INVALID
25+ for e in tree :
26+ if e .isDir ():
27+ if e .name ().lower () in self ._valid_folders :
28+ return mobase .ModDataChecker .VALID
29+
30+ return mobase .ModDataChecker .INVALID
2331
2432
2533class StalkerAnomalyGame (BasicGame , mobase .IPluginFileMapper ):
2634 Name = "STALKER Anomaly"
2735 Author = "Qudix"
28- Version = "0.3.0 "
36+ Version = "0.3.1 "
2937 Description = "Adds support for STALKER Anomaly"
3038
3139 GameName = "STALKER Anomaly"
You can’t perform that action at this time.
0 commit comments