Use variables for Stardew Valley.

This commit is contained in:
Mikaël Capelle
2020-06-12 22:53:09 +02:00
parent a92b0aa0d8
commit c9a0a7970e
+2 -10
View File
@@ -19,6 +19,8 @@ class StardewValleyGame(BasicGame):
GameSteamId = 413150
GameBinary = "Stardew Valley.exe"
GameDataPath = "mods"
GameDocumentsDirectory = "%DOCUMENTS%/StardewValley"
GameSavesDirectory = "%GAME_DOCUMENTS%/Saves"
def executables(self):
return [
@@ -29,13 +31,3 @@ class StardewValleyGame(BasicGame):
"Stardew Valley", QFileInfo(self.gameDirectory(), "Stardew Valley.exe")
),
]
def documentsDirectory(self):
return QDir(
"{}/StardewValley".format(
QStandardPaths.writableLocation(QStandardPaths.AppDataLocation)
)
)
def savesDirectory(self):
return QDir(self.documentsDirectory().absoluteFilePath("Saves"))