From 45359c5ff9f5a5cb46631c977cc87742a1bd4e38 Mon Sep 17 00:00:00 2001 From: Eeshta <74037482+Azlle@users.noreply.github.com> Date: Mon, 20 Apr 2026 16:36:31 +0900 Subject: [PATCH] fix(sts2): create mods directory if missing (#217) --- games/game_sts2.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/games/game_sts2.py b/games/game_sts2.py index 4d1fe3a..fe992e8 100644 --- a/games/game_sts2.py +++ b/games/game_sts2.py @@ -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"))