|
8 | 8 | from ..basic_game import BasicGame, BasicGameSaveGame |
9 | 9 | from ..steam_utils import find_steam_path |
10 | 10 |
|
| 11 | + |
11 | 12 | class DarkestDungeonModDataChecker(mobase.ModDataChecker): |
12 | 13 | def __init__(self): |
13 | 14 | super().__init__() |
@@ -57,6 +58,7 @@ def dataLooksValid( |
57 | 58 | return mobase.ModDataChecker.VALID |
58 | 59 | return mobase.ModDataChecker.INVALID |
59 | 60 |
|
| 61 | + |
60 | 62 | class DarkestDungeonSaveGame(BasicGameSaveGame): |
61 | 63 | def __init__(self, filepath: Path): |
62 | 64 | super().__init__(filepath) |
@@ -153,6 +155,7 @@ def getName(self) -> str: |
153 | 155 | return super().getName() |
154 | 156 | return self.name |
155 | 157 |
|
| 158 | + |
156 | 159 | class DarkestDungeonGame(BasicGame): |
157 | 160 | Name = "DarkestDungeon" |
158 | 161 | Author = "erri120" |
@@ -180,10 +183,22 @@ def executables(self) -> list[mobase.ExecutableInfo]: |
180 | 183 | game_dir = self.gameDirectory() |
181 | 184 |
|
182 | 185 | return [ |
183 | | - mobase.ExecutableInfo(f"{game_name} Steam x64", QFileInfo(game_dir, "_windows/win64/Darkest.exe")), |
184 | | - mobase.ExecutableInfo(f"{game_name} x64", QFileInfo(game_dir, "_windowsnosteam/win64/Darkest.exe")), |
185 | | - mobase.ExecutableInfo(f"{game_name} Steam x32", QFileInfo(game_dir, "_windows/win32/Darkest.exe")), |
186 | | - mobase.ExecutableInfo(f"{game_name} x32", QFileInfo(game_dir, "_windowsnosteam/win32/Darkest.exe")), |
| 186 | + mobase.ExecutableInfo( |
| 187 | + f"{game_name} Steam x64", |
| 188 | + QFileInfo(game_dir, "_windows/win64/Darkest.exe"), |
| 189 | + ), |
| 190 | + mobase.ExecutableInfo( |
| 191 | + f"{game_name} x64", |
| 192 | + QFileInfo(game_dir, "_windowsnosteam/win64/Darkest.exe"), |
| 193 | + ), |
| 194 | + mobase.ExecutableInfo( |
| 195 | + f"{game_name} Steam x32", |
| 196 | + QFileInfo(game_dir, "_windows/win32/Darkest.exe"), |
| 197 | + ), |
| 198 | + mobase.ExecutableInfo( |
| 199 | + f"{game_name} x32", |
| 200 | + QFileInfo(game_dir, "_windowsnosteam/win32/Darkest.exe"), |
| 201 | + ), |
187 | 202 | ] |
188 | 203 |
|
189 | 204 | @staticmethod |
@@ -211,11 +226,11 @@ def savesDirectory(self) -> QDir: |
211 | 226 |
|
212 | 227 | if not self.is_steam(): |
213 | 228 | return documentsSaves |
214 | | - |
| 229 | + |
215 | 230 | cloudSaves = self.getCloudSaveDirectory() |
216 | 231 | if cloudSaves is None: |
217 | 232 | return documentsSaves |
218 | | - |
| 233 | + |
219 | 234 | return QDir(cloudSaves) |
220 | 235 |
|
221 | 236 | def listSaves(self, folder: QDir) -> list[mobase.ISaveGame]: |
|
0 commit comments