Merge pull request 'Support new method of feature registration' (#1) from Gipphe/sptMO2:main into main

Reviewed-on: #1
This commit is contained in:
archon0ne 2024-09-23 10:39:27 +00:00
commit 6c2ecb2afd

View File

@ -23,7 +23,10 @@ class SPTGame(BasicGame, mobase.IPluginFileMapper):
def init(self, organizer: mobase.IOrganizer) -> bool:
super().init(organizer)
if hasattr(self, '_featureMap'):
self._featureMap[mobase.ModDataChecker] = SPTModDataChecker()
else:
self._register_feature(SPTModDataChecker())
return True
def executables(self) -> List[mobase.ExecutableInfo]: