mirror of
https://github.com/ModOrganizer2/modorganizer-basic_games.git
synced 2026-07-27 14:07:29 -07:00
65 lines
1.6 KiB
Python
65 lines
1.6 KiB
Python
# -*- encoding: utf-8 -*-
|
|
|
|
from __future__ import annotations
|
|
|
|
import mobase
|
|
from PyQt5.QtCore import QFileInfo
|
|
|
|
from ..basic_game import BasicGame
|
|
|
|
|
|
class ControlGame(BasicGame):
|
|
|
|
Name = "Control Support Plugin"
|
|
Author = "Zash"
|
|
Version = "1.0.0"
|
|
|
|
GameName = "Control"
|
|
GameShortName = "control"
|
|
GameNexusId = 2936
|
|
GameSteamId = 870780
|
|
GameGogId = 2049187585
|
|
GameBinary = "Control.exe"
|
|
GameDataPath = ""
|
|
|
|
def executables(self):
|
|
return [
|
|
mobase.ExecutableInfo(
|
|
"Control (Launcher)",
|
|
QFileInfo(
|
|
self.gameDirectory(),
|
|
self.binaryName(),
|
|
),
|
|
),
|
|
mobase.ExecutableInfo(
|
|
"Control DX11",
|
|
QFileInfo(
|
|
self.gameDirectory(),
|
|
"Control_DX11.exe",
|
|
),
|
|
),
|
|
mobase.ExecutableInfo(
|
|
"Control DX12",
|
|
QFileInfo(
|
|
self.gameDirectory(),
|
|
"Control_DX12.exe",
|
|
),
|
|
),
|
|
]
|
|
|
|
def executableForcedLoads(self) -> list[mobase.ExecutableForcedLoadSetting]:
|
|
try:
|
|
efls = super().executableForcedLoads()
|
|
except AttributeError:
|
|
efls = []
|
|
|
|
libraries = ["iphlpapi.dll", "xinput1_4.dll"]
|
|
efls.extend(
|
|
mobase.ExecutableForcedLoadSetting(
|
|
exe.binary().fileName(), lib
|
|
).withEnabled(True)
|
|
for lib in libraries
|
|
for exe in self.executables()
|
|
)
|
|
return efls
|