aboutsummaryrefslogtreecommitdiff
path: root/libs/basic_games/games/game_tdu.py
blob: 5624ff875e585381e81596ba32b31427ea1bd650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- encoding: utf-8 -*-

from PyQt6.QtCore import QFileInfo

import mobase

from ..basic_game import BasicGame


class TDUGame(BasicGame):
    Name = "Test Drive Unlimited Support Plugin"
    Author = "uwx"
    Version = "1.0.0"

    GameName = "Test Drive Unlimited"
    GameShortName = "tdu"
    GameNexusName = "testdriveunlimited"
    GameNexusId = 4615
    GameBinary = "TestDriveUnlimited.exe"
    GameDataPath = ""

    def executables(self):
        return [
            mobase.ExecutableInfo(
                "Test Drive Unlimited",
                QFileInfo(self.gameDirectory().absoluteFilePath(self.binaryName())),
            ).withArgument("-w -wx -vsync -bigbnks -offline"),
            mobase.ExecutableInfo(
                "Project Paradise Launcher",
                QFileInfo(
                    self.gameDirectory().absoluteFilePath(
                        "TDU - Project Paradise Launcher.exe"
                    )
                ),
            ),
        ]