mirror of
https://github.com/ModOrganizer2/modorganizer-basic_games.git
synced 2026-07-27 14:07:29 -07:00
fix(sts2): create mods directory if missing (#217)
This commit is contained in:
+6
-1
@@ -30,7 +30,7 @@ class SlayTheSpire2ModDataChecker(BasicModDataChecker):
|
||||
class SlayTheSpire2Game(BasicGame):
|
||||
Name = "Slay the Spire 2 Support Plugin"
|
||||
Author = "Azlle"
|
||||
Version = "1.0.0"
|
||||
Version = "1.0.1"
|
||||
|
||||
GameName = "Slay the Spire 2"
|
||||
GameShortName = "slaythespire2"
|
||||
@@ -46,6 +46,11 @@ class SlayTheSpire2Game(BasicGame):
|
||||
self._register_feature(SlayTheSpire2ModDataChecker())
|
||||
return True
|
||||
|
||||
def initializeProfile(self, directory: QDir, settings: mobase.ProfileSetting):
|
||||
mods_path = Path(self.dataDirectory().absolutePath())
|
||||
mods_path.mkdir(exist_ok=True)
|
||||
super().initializeProfile(directory, settings)
|
||||
|
||||
def savesDirectory(self) -> QDir:
|
||||
docs = QDir(self.documentsDirectory())
|
||||
steam_dir = Path(docs.absoluteFilePath("steam"))
|
||||
|
||||
Reference in New Issue
Block a user