2023-09-15 19:35:32 -05:00
|
|
|
from PyQt6.QtCore import QFileInfo
|
2022-02-01 20:43:34 -08:00
|
|
|
|
2025-04-25 08:23:10 +02:00
|
|
|
import mobase
|
|
|
|
|
|
2022-02-01 20:43:34 -08:00
|
|
|
from ..basic_game import BasicGame
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class RailworksGame(BasicGame):
|
2023-12-29 02:17:18 -08:00
|
|
|
Name = "Train Simulator Classic Support Plugin"
|
2022-02-01 20:43:34 -08:00
|
|
|
Author = "Ryan Young"
|
2023-12-29 02:17:18 -08:00
|
|
|
Version = "1.1.0"
|
2022-02-01 20:43:34 -08:00
|
|
|
|
|
|
|
|
GameName = "Train Simulator"
|
|
|
|
|
GameShortName = "railworks"
|
|
|
|
|
GameBinary = "RailWorks.exe"
|
|
|
|
|
GameDataPath = ""
|
|
|
|
|
GameSteamId = "24010"
|
2023-12-29 02:17:18 -08:00
|
|
|
GameSupportURL = (
|
|
|
|
|
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
|
|
|
|
|
"Game:-Train-Simulator-Classic"
|
|
|
|
|
)
|
2022-02-01 20:43:34 -08:00
|
|
|
|
|
|
|
|
def executables(self):
|
2023-12-29 02:17:18 -08:00
|
|
|
game_directory = self.gameDirectory()
|
|
|
|
|
executables: list[tuple[str, str]] = [
|
|
|
|
|
("32-bit", "RailWorks.exe"),
|
|
|
|
|
("64-bit", "RailWorks64.exe"),
|
|
|
|
|
("64-bit, DirectX 12", "RailWorksDX12_64.exe"),
|
|
|
|
|
]
|
2022-02-01 20:43:34 -08:00
|
|
|
return [
|
|
|
|
|
mobase.ExecutableInfo(
|
2023-12-29 02:17:18 -08:00
|
|
|
f"Train Simulator ({name})",
|
|
|
|
|
QFileInfo(game_directory.absoluteFilePath(path)),
|
|
|
|
|
)
|
|
|
|
|
for name, path in executables
|
2022-02-01 20:43:34 -08:00
|
|
|
]
|