mirror of
https://github.com/ModOrganizer2/modorganizer-basic_games.git
synced 2026-07-27 14:07:29 -07:00
Merge branch 'LostDragonist-supporturl' into qt6
# Conflicts: # basic_game.py # games/game_da2.py # games/game_dao.py
This commit is contained in:
@@ -211,6 +211,7 @@ class BasicGameMappings:
|
||||
originWatcherExecutables: BasicGameMapping[List[str]]
|
||||
epicAPPId: BasicGameOptionsMapping[str]
|
||||
eaDesktopContentId: BasicGameOptionsMapping[str]
|
||||
supportURL: BasicGameMapping[str]
|
||||
|
||||
@staticmethod
|
||||
def _default_documents_directory(game):
|
||||
@@ -336,6 +337,9 @@ class BasicGameMappings:
|
||||
default=lambda g: "",
|
||||
apply_fn=ids_apply,
|
||||
)
|
||||
self.supportURL = BasicGameMapping(
|
||||
game, "GameSupportURL", "supportURL", default=lambda g: ""
|
||||
)
|
||||
|
||||
|
||||
class BasicGame(mobase.IPluginGame):
|
||||
@@ -517,6 +521,9 @@ class BasicGame(mobase.IPluginGame):
|
||||
def getLauncherName(self) -> str:
|
||||
return self._mappings.launcherName.get()
|
||||
|
||||
def getSupportURL(self) -> str:
|
||||
return self._mappings.supportURL.get()
|
||||
|
||||
def executables(self) -> List[mobase.ExecutableInfo]:
|
||||
execs = []
|
||||
if self.getLauncherName():
|
||||
|
||||
Reference in New Issue
Block a user