mirror of
https://github.com/ModOrganizer2/modorganizer-basic_games.git
synced 2026-07-27 14:07:29 -07:00
33 lines
886 B
Python
33 lines
886 B
Python
import mobase
|
|
from PyQt6.QtCore import QFileInfo
|
|
|
|
from ..basic_game import BasicGame
|
|
|
|
|
|
class RailworksGame(BasicGame):
|
|
Name = "Train Simulator 20xx Support Plugin"
|
|
Author = "Ryan Young"
|
|
|
|
GameName = "Train Simulator"
|
|
GameShortName = "railworks"
|
|
GameBinary = "RailWorks.exe"
|
|
GameValidShortNames = ["ts1"]
|
|
GameDataPath = ""
|
|
GameSteamId = "24010"
|
|
|
|
def version(self):
|
|
# Don't forget to import mobase!
|
|
return mobase.VersionInfo(1, 0, 0, mobase.ReleaseType.FINAL)
|
|
|
|
def executables(self):
|
|
return [
|
|
mobase.ExecutableInfo(
|
|
"Train Simulator (32-bit)",
|
|
QFileInfo(self.gameDirectory(), "RailWorks.exe"),
|
|
),
|
|
mobase.ExecutableInfo(
|
|
"Train Simulator (64-bit)",
|
|
QFileInfo(self.gameDirectory(), "RailWorks64.exe"),
|
|
),
|
|
]
|