Merge branch 'LostDragonist-supporturl' into qt6

# Conflicts:
#	basic_game.py
#	games/game_da2.py
#	games/game_dao.py
This commit is contained in:
Mikaël Capelle
2022-05-02 17:14:53 +02:00
39 changed files with 158 additions and 0 deletions
+7
View File
@@ -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():
+4
View File
@@ -13,3 +13,7 @@ class AssettoCorsaGame(BasicGame):
GameDataPath = r""
GameSteamId = 244210
GameDocumentsDirectory = "%DOCUMENTS%/Assetto Corsa"
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Assetto-Corsa"
)
+4
View File
@@ -347,6 +347,10 @@ class BlackAndWhite2Game(BasicGame, mobase.IPluginFileMapper):
GameBinary = "white.exe"
GameDocumentsDirectory = "%DOCUMENTS%/Black & White 2"
GameSavesDirectory = "%GAME_DOCUMENTS%/Profiles"
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Black-&-White-2"
)
_program_link = PSTART_MENU + "\\Black & White 2\\Black & White® 2.lnk"
+4
View File
@@ -12,3 +12,7 @@ class BaSGame(BasicGame):
GameBinary = "BladeAndSorcery.exe"
GameDataPath = r"BladeAndSorcery_Data\StreamingAssets\Mods"
GameSteamId = 629730
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Blade-&-Sorcery"
)
+4
View File
@@ -16,3 +16,7 @@ class Cyberpunk2077Game(BasicGame):
GameSaveExtension = "dat"
GameSteamId = 1091500
GameGogId = 1423049311
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Cyberpunk-2077"
)
+4
View File
@@ -21,6 +21,10 @@ class DA2Game(BasicGame):
GameOriginManifestIds = ["OFB-EAST:59474", "DR:201797000"]
GameOriginWatcherExecutables = ("DragonAge2.exe",)
GameEaDesktopId = [70784, 1002980]
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Dragon-Age-II"
)
def version(self):
# Don't forget to import mobase!
+4
View File
@@ -50,3 +50,7 @@ class DaggerfallUnityGame(BasicGame):
GameBinary = "DaggerfallUnity.exe"
GameLauncher = "DaggerfallUnity.exe"
GameDataPath = "%GAME_PATH%/DaggerfallUnity_Data/StreamingAssets"
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Daggerfall-Unity"
)
+4
View File
@@ -21,6 +21,10 @@ class DAOriginsGame(BasicGame):
GameSteamId = [17450, 47810]
GameGogId = 1949616134
GameEaDesktopId = [70377, 70843]
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Dragon-Age:-Origins"
)
def init(self, organizer: mobase.IOrganizer):
super().init(organizer)
+4
View File
@@ -171,6 +171,10 @@ class DarkestDungeonGame(BasicGame):
GameGogId = 1719198803
GameBinary = "_windowsnosteam//darkest.exe"
GameDataPath = ""
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Darkest-Dungeon"
)
def init(self, organizer: mobase.IOrganizer) -> bool:
super().init(organizer)
+4
View File
@@ -22,6 +22,10 @@ class DarkMessiahOfMightAndMagicGame(BasicGame):
GameSteamId = 2100
GameBinary = "mm.exe"
GameDataPath = "mm"
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Dark-Messiah-of-Might-&-Magic"
)
GameDocumentsDirectory = "%GAME_PATH%/mm"
GameSavesDirectory = "%GAME_PATH%/mm/SAVE"
+4
View File
@@ -18,3 +18,7 @@ class DarkSoulsGame(BasicGame):
GameDocumentsDirectory = "%DOCUMENTS%/NBGI/DarkSouls"
GameSavesDirectory = "%DOCUMENTS%/NBGI/DarkSouls"
GameSaveExtension = "sl2"
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Dark-Souls"
)
+4
View File
@@ -26,6 +26,10 @@ class DivinityOriginalSinGame(BasicGame):
GameSavesDirectory = (
"%USERPROFILE%/Documents/Larian Studios/Divinity Original Sin/PlayerProfiles"
)
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Divinity:-Original-Sin"
)
def init(self, organizer: mobase.IOrganizer):
super().init(organizer)
+4
View File
@@ -80,6 +80,10 @@ class DivinityOriginalSinEnhancedEditionGame(BasicGame, mobase.IPluginFileMapper
"%USERPROFILE%/Documents/Larian Studios/"
"Divinity Original Sin Enhanced Edition/PlayerProfiles"
)
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Divinity:-Original-Sin"
)
DOCS_MOD_SPECIAL_NAME = "DOCS_MOD"
+4
View File
@@ -16,3 +16,7 @@ class NoMansSkyGame(BasicGame):
GameGogId = 1242384383
GameBinary = "DDDA.exe"
GameDataPath = "nativePC"
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Dragon's-Dogma:-Dark-Arisen"
)
+4
View File
@@ -73,6 +73,10 @@ class DungeonSiegeIIGame(BasicGame):
GameSavesDirectory = "%GAME_DOCUMENTS%/Save"
GameDocumentsDirectory = "%DOCUMENTS%/My Games/Dungeon Siege 2"
GameSaveExtension = "ds2party"
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Dungeon-Siege-II"
)
def init(self, organizer: mobase.IOrganizer):
super().init(organizer)
+4
View File
@@ -39,6 +39,10 @@ class GTA3DefinitiveEditionGame(BasicGame):
)
GameSavesDirectory = "%GAME_DOCUMENTS%/../../SaveGames"
GameSaveExtension = "sav"
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Grand-Theft-Auto:-The-Trilogy-%E2%80%90-The-Definitive-Edition"
)
def init(self, organizer: mobase.IOrganizer) -> bool:
super().init(organizer)
+4
View File
@@ -39,6 +39,10 @@ class GTASanAndreasDefinitiveEditionGame(BasicGame):
)
GameSavesDirectory = "%GAME_DOCUMENTS%/../../SaveGames"
GameSaveExtension = "sav"
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Grand-Theft-Auto:-The-Trilogy-%E2%80%90-The-Definitive-Edition"
)
def init(self, organizer: mobase.IOrganizer) -> bool:
super().init(organizer)
+4
View File
@@ -39,6 +39,10 @@ class GTAViceCityDefinitiveEditionGame(BasicGame):
)
GameSavesDirectory = "%GAME_DOCUMENTS%/../../SaveGames"
GameSaveExtension = "sav"
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Grand-Theft-Auto:-The-Trilogy-%E2%80%90-The-Definitive-Edition"
)
def init(self, organizer: mobase.IOrganizer) -> bool:
super().init(organizer)
+4
View File
@@ -38,6 +38,10 @@ class KerbalSpaceProgramGame(BasicGame):
GameDataPath = "GameData"
GameSavesDirectory = "%GAME_PATH%/saves"
GameSaveExtension = "sfs"
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Kerbal-Space-Program"
)
def init(self, organizer):
super().init(organizer)
+4
View File
@@ -24,6 +24,10 @@ class KingdomComeDeliveranceGame(BasicGame):
GameSaveExtension = "whs"
GameDocumentsDirectory = "%GAME_PATH%"
GameSavesDirectory = "%USERPROFILE%/Saved Games/kingdomcome/saves"
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Kingdom-Come:-Deliverance"
)
def iniFiles(self):
return ["custom.cfg", "system.cfg", "user.cfg"]

Some files were not shown because too many files have changed in this diff Show More