mirror of
https://github.com/ModOrganizer2/modorganizer-basic_games.git
synced 2026-07-27 14:07:29 -07:00
Merge branch 'ashemedai-dragon-age-2-support' into qt6
# Conflicts: # games/game_da2.py
This commit is contained in:
+10
-4
@@ -1,7 +1,8 @@
|
||||
from PyQt6.QtCore import QDir
|
||||
import os
|
||||
|
||||
import mobase
|
||||
|
||||
from ..basic_features import BasicGameSaveGameInfo
|
||||
from ..basic_game import BasicGame
|
||||
|
||||
|
||||
@@ -14,6 +15,7 @@ class DA2Game(BasicGame):
|
||||
GameShortName = "dragonage2"
|
||||
GameBinary = r"bin_ship\DragonAge2.exe"
|
||||
GameDataPath = r"%DOCUMENTS%\BioWare\Dragon Age 2\packages\core\override"
|
||||
GameSavesDirectory = r"%DOCUMENTS%\BioWare\Dragon Age 2\Characters"
|
||||
GameSaveExtension = "das"
|
||||
GameSteamId = 1238040
|
||||
GameOriginManifestIds = ["OFB-EAST:59474", "DR:201797000"]
|
||||
@@ -21,7 +23,11 @@ class DA2Game(BasicGame):
|
||||
|
||||
def version(self):
|
||||
# Don't forget to import mobase!
|
||||
return mobase.VersionInfo(1, 0, 0, mobase.ReleaseType.final)
|
||||
return mobase.VersionInfo(1, 0, 1, mobase.ReleaseType.final)
|
||||
|
||||
def savesDirectory(self):
|
||||
return QDir(self.documentsDirectory().absoluteFilePath("gamesaves"))
|
||||
def init(self, organizer: mobase.IOrganizer):
|
||||
super().init(organizer)
|
||||
self._featureMap[mobase.SaveGameInfo] = BasicGameSaveGameInfo(
|
||||
lambda s: os.path.split(s)[0] + "/screen.dds"
|
||||
)
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user