Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion games/game_sts2.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self):
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"
Expand All @@ -46,6 +46,11 @@ def init(self, organizer: mobase.IOrganizer) -> bool:
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"))
Expand Down
Loading