Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions games/game_starwarsoutlaws.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
"""
This plugin references the correct Steam ID. I do not have the game on Steam,
I have it on Ubi Connect, and it will silently fail to launch if the Ubi
launcher is not open when you press Play in MO
"""

from pathlib import Path

import mobase

from ..basic_game import BasicGame


class StarWarsOutlawsGame(BasicGame):
Name = "Star Wars Outlaws"
Author = "Bladehawke"
Version = "1.1.0"

GameName = "Star Wars Outlaws"
GameShortName = "StarWarsOutlaws"
GameNexusName = "starwarsoutlaws"
GameSteamId = 2842040
GameBinary = "Outlaws.exe"
GameDataPath = ""
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Star-Wars-Outlaws"
)

_forced_libraries = [
"version.dll",
"dinput8.dll",
] # Snowdrop and Raindrop mod loaders (Do *NOT* use both at the same time)

def executables(self) -> list[mobase.ExecutableInfo]:
game_name = self.gameName()
game_dir = self.gameDirectory()
bin_path = game_dir.absoluteFilePath(self.binaryName())
return [
mobase.ExecutableInfo(
game_name,
bin_path,
)
]

def executableForcedLoads(self) -> list[mobase.ExecutableForcedLoadSetting]:
exe = Path(self.binaryName()).name
return [
mobase.ExecutableForcedLoadSetting(exe, lib).withEnabled(True)
for lib in self._forced_libraries
]
Loading