-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Tony Hawk's Pro Skater 3, 4, Underground & Underground 2 Support (#…
…145) * Add THPS series support --------- Co-authored-by: uwx <uwx@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
172 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
import mobase | ||
from PyQt6.QtCore import QFileInfo | ||
|
||
from ..basic_game import BasicGame | ||
|
||
|
||
class THPS3Game(BasicGame): | ||
|
||
Name = "Tony Hawk's Pro Skater 3 Support Plugin" | ||
Author = "uwx" | ||
Version = "1.0.0" | ||
|
||
GameName = "Tony Hawk's Pro Skater 3" | ||
GameShortName = "thps3" | ||
GameBinary = "Skate3.exe" | ||
GameDataPath = "Data" | ||
|
||
def executables(self): | ||
return [ | ||
mobase.ExecutableInfo( | ||
"Tony Hawk's Pro Skater 3", | ||
QFileInfo(self.gameDirectory().absoluteFilePath(self.binaryName())), | ||
), | ||
mobase.ExecutableInfo( | ||
"Tony Hawk's Pro Skater 3 Setup", | ||
QFileInfo(self.gameDirectory().absoluteFilePath("THPS3Setup.exe")), | ||
), | ||
mobase.ExecutableInfo( | ||
"Tony Hawk's Pro Skater 3 (PARTYMOD)", | ||
QFileInfo(self.gameDirectory().absoluteFilePath("THPS3.exe")), | ||
), | ||
mobase.ExecutableInfo( | ||
"PARTYMOD Configurator", | ||
QFileInfo(self.gameDirectory().absoluteFilePath("partyconfig.exe")), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
import mobase | ||
from PyQt6.QtCore import QDir, QFileInfo | ||
|
||
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")), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
import mobase | ||
from PyQt6.QtCore import QDir, QFileInfo | ||
|
||
from ..basic_game import BasicGame | ||
|
||
|
||
class THPS4Game(BasicGame): | ||
|
||
Name = "Tony Hawk's Underground Support Plugin" | ||
Author = "uwx" | ||
Version = "1.0.0" | ||
|
||
GameName = "Tony Hawk's Underground" | ||
GameShortName = "thug" | ||
GameBinary = "THUG.exe" | ||
GameDataPath = "Data" | ||
|
||
def executables(self): | ||
return [ | ||
mobase.ExecutableInfo( | ||
"Tony Hawk's Underground", | ||
QFileInfo(self.gameDirectory().absoluteFilePath(self.binaryName())), | ||
), | ||
mobase.ExecutableInfo( | ||
"Tony Hawk's Underground Launcher", | ||
QFileInfo(self.gameDirectory().absoluteFilePath("../Launcher.exe")), | ||
).withWorkingDirectory( | ||
QDir(QDir.cleanPath(self.gameDirectory().absoluteFilePath(".."))) | ||
), | ||
mobase.ExecutableInfo( | ||
"Tony Hawk's Underground (ClownJob'd)", | ||
QFileInfo(self.gameDirectory().absoluteFilePath("THUGONE.exe")), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
import os | ||
|
||
import mobase | ||
from PyQt6.QtCore import QDir, QFileInfo | ||
|
||
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" | ||
) | ||
), | ||
), | ||
] |