Skip to content

Commit ff633cd

Browse files
author
d.schlatter
committed
temp
1 parent 589928f commit ff633cd

4 files changed

Lines changed: 58 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import mobase
2+
class BG3DataArchives(mobase.DataArchives):
3+
def addArchive(self, profile, index, name):
4+
pass
5+
6+
def archives(self, profile):
7+
pass
8+
9+
def removeArchive(self, profile, name):
10+
pass
11+
12+
def vanillaArchives(self):
13+
pass
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import mobase
2+
3+
class BG3GamePlugin(mobase.GamePlugins):
4+
def getLoadOrder(self):
5+
pass
6+
7+
def lightPluginsAreSupported(self):
8+
pass
9+
10+
def mediumPluginsAreSupported(self):
11+
pass
12+
13+
def readPluginLists(self, plugin_list):
14+
pass
15+
16+
def writePluginLists(self, plugin_list):
17+
pass
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import pathlib
2+
import mobase
3+
4+
class BG3ScriptExtender(mobase.ScriptExtender):
5+
def __init__(self, game: mobase.IPluginGame):
6+
super().__init__()
7+
self._game = game
8+
def loaderName(self) -> str:
9+
return "DWrite.dll"
10+
def loaderPath(self) -> str:
11+
return str(pathlib.Path(self._game.gameDirectory().absolutePath()) / "bin" / self.loaderName())
12+
def isInstalled(self) -> bool:
13+
return pathlib.Path(self.loaderPath()).exists()
14+
def getExtenderVersion(self) -> str:
15+
return mobase.getFileVersion(self.loaderPath())
16+
def getArch(self) -> int:
17+
return 0x8664 if self.isInstalled() else 0x0
18+
def binaryName(self):
19+
return ""
20+
21+
def pluginPath(self):
22+
return ""
23+
24+
def savegameExtension(self):
25+
return ""

games/game_baldursgate3.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ def add_mapping(file: Path):
280280
progress.close()
281281
return mappings
282282

283+
def loadOrderMechanism(self) -> mobase.LoadOrderMechanism:
284+
return mobase.LoadOrderMechanism.PLUGINS_TXT
285+
283286
@cached_property
284287
def _base_dlls(self) -> set[str]:
285288
base_bin = Path(self.gameDirectory().absoluteFilePath("bin"))

0 commit comments

Comments
 (0)