aboutsummaryrefslogtreecommitdiff
path: root/libs/basic_games/games/game_thps4.py
diff options
context:
space:
mode:
Diffstat (limited to 'libs/basic_games/games/game_thps4.py')
-rw-r--r--libs/basic_games/games/game_thps4.py40
1 files changed, 40 insertions, 0 deletions
diff --git a/libs/basic_games/games/game_thps4.py b/libs/basic_games/games/game_thps4.py
new file mode 100644
index 0000000..7a7ca0b
--- /dev/null
+++ b/libs/basic_games/games/game_thps4.py
@@ -0,0 +1,40 @@
+# -*- encoding: utf-8 -*-
+
+from PyQt6.QtCore import QDir, QFileInfo
+
+import mobase
+
+from ..basic_game import BasicGame
+
+
+class THPS4Game(BasicGame):
+ Name = "Tony Hawk's Pro Skater 4 Support Plugin"
+ Author = "uwx"
+ Version = "1.0.0"
+
+ GameName = "Tony Hawk's Pro Skater 4"
+ GameShortName = "thps4"
+ GameBinary = "Skate4.exe"
+ GameDataPath = "Data"
+
+ def executables(self):
+ return [
+ mobase.ExecutableInfo(
+ "Tony Hawk's Pro Skater 4",
+ QFileInfo(self.gameDirectory().absoluteFilePath(self.binaryName())),
+ ),
+ mobase.ExecutableInfo(
+ "Tony Hawk's Pro Skater 4 Setup",
+ QFileInfo(self.gameDirectory().absoluteFilePath("../Start.exe")),
+ ).withWorkingDirectory(
+ QDir(QDir.cleanPath(self.gameDirectory().absoluteFilePath("..")))
+ ),
+ mobase.ExecutableInfo(
+ "Tony Hawk's Pro Skater 4 (PARTYMOD)",
+ QFileInfo(self.gameDirectory().absoluteFilePath("THPS4.exe")),
+ ),
+ mobase.ExecutableInfo(
+ "PARTYMOD Configurator",
+ QFileInfo(self.gameDirectory().absoluteFilePath("partyconfig.exe")),
+ ),
+ ]