diff options
Diffstat (limited to 'libs/basic_games/games')
| -rw-r--r-- | libs/basic_games/games/game_arkhamcity.py | 2 | ||||
| -rw-r--r-- | libs/basic_games/games/game_vampirebloodlines.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/libs/basic_games/games/game_arkhamcity.py b/libs/basic_games/games/game_arkhamcity.py index 0b8269f..adcf6d4 100644 --- a/libs/basic_games/games/game_arkhamcity.py +++ b/libs/basic_games/games/game_arkhamcity.py @@ -53,7 +53,7 @@ class ArkhamCityGame(BasicGame): # This will only detect saves from the earliest-created Steam profile on the user's PC. def savesDirectory(self) -> QDir: - docSaves = QDir(self.documentsDirectory().cleanPath("../../SaveData")) + docSaves = QDir(self.documentsDirectory().absoluteFilePath("../../SaveData")) if self.is_steam(): if (steamDir := find_steam_path()) is None: return docSaves diff --git a/libs/basic_games/games/game_vampirebloodlines.py b/libs/basic_games/games/game_vampirebloodlines.py index a63b308..41d63cc 100644 --- a/libs/basic_games/games/game_vampirebloodlines.py +++ b/libs/basic_games/games/game_vampirebloodlines.py @@ -83,6 +83,7 @@ class VampireTheMasqueradeBloodlinesGame(BasicGame): for iniFile in self.iniFiles(): iniPath = Path(self.documentsDirectory().absoluteFilePath(iniFile)) if not iniPath.exists(): + iniPath.parent.mkdir(parents=True, exist_ok=True) with open(iniPath, "w") as _: pass |
