aboutsummaryrefslogtreecommitdiff
path: root/libs/basic_games/games/game_thug2.py
diff options
context:
space:
mode:
Diffstat (limited to 'libs/basic_games/games/game_thug2.py')
-rw-r--r--libs/basic_games/games/game_thug2.py54
1 files changed, 54 insertions, 0 deletions
diff --git a/libs/basic_games/games/game_thug2.py b/libs/basic_games/games/game_thug2.py
new file mode 100644
index 0000000..389e204
--- /dev/null
+++ b/libs/basic_games/games/game_thug2.py
@@ -0,0 +1,54 @@
+# -*- encoding: utf-8 -*-
+
+import os
+
+from PyQt6.QtCore import QDir, QFileInfo
+
+import mobase
+
+from ..basic_game import BasicGame
+
+
+class THPS4Game(BasicGame):
+ Name = "Tony Hawk's Underground 2 Support Plugin"
+ Author = "uwx"
+ Version = "1.0.0"
+
+ GameName = "Tony Hawk's Underground 2"
+ GameShortName = "thug2"
+ GameBinary = "THUG2.exe"
+ GameDataPath = "Data"
+
+ def executables(self):
+ return [
+ mobase.ExecutableInfo(
+ "Tony Hawk's Underground 2",
+ QFileInfo(self.gameDirectory().absoluteFilePath(self.binaryName())),
+ ),
+ mobase.ExecutableInfo(
+ "Tony Hawk's Underground 2 Launcher",
+ QFileInfo(self.gameDirectory().absoluteFilePath("../Launcher.exe")),
+ ).withWorkingDirectory(
+ QDir(QDir.cleanPath(self.gameDirectory().absoluteFilePath("..")))
+ ),
+ mobase.ExecutableInfo(
+ "Tony Hawk's Underground 2 (ClownJob'd)",
+ QFileInfo(self.gameDirectory().absoluteFilePath("THUGTWO.exe")),
+ ),
+ mobase.ExecutableInfo(
+ "THUG Pro Launcher",
+ QFileInfo(
+ QDir(os.getenv("LOCALAPPDATA")).absoluteFilePath(
+ "THUG Pro/THUGProLauncher.exe"
+ )
+ ),
+ ),
+ mobase.ExecutableInfo(
+ "THUG Pro",
+ QFileInfo(
+ QDir(os.getenv("LOCALAPPDATA")).absoluteFilePath(
+ "THUG Pro/THUGPro.exe"
+ )
+ ),
+ ),
+ ]