Edited SPT MO2 Plugin for New Executables

This commit is contained in:
Rage 2025-01-03 13:13:06 -05:00
parent b3cab2e572
commit 410ca6d0be
2 changed files with 9 additions and 2 deletions

View File

@ -259,7 +259,7 @@ Centering On Player Zoom Level = 0.15
# Setting type: Single
# Default value: 0
# Acceptable value range: From 0 to 15
Main map zoom = 15
Main map zoom = 1.342218
## The keyboard shortcut to peek at the map
# Setting type: KeyboardShortcut

View File

@ -31,6 +31,13 @@ class SPTGame(BasicGame, mobase.IPluginFileMapper):
def executables(self) -> List[mobase.ExecutableInfo]:
execs = super().executables()
info = [
["Multiplayer", "SPT.Launcher.exe"],
]
gamedir = self.gameDirectory()
return [
mobase.ExecutableInfo(inf[0], QFileInfo(gamedir, inf[1])) for inf in info
]
"""
A bat script file to bridge the environment to server and launcher.
@ -64,7 +71,7 @@ endlocal
workaround.close()
execs.append(
mobase.ExecutableInfo("Launch SP Tarkov", QFileInfo(workaroundPath))
mobase.ExecutableInfo("Singleplayer", QFileInfo(workaroundPath))
)
execs.pop(0)
return execs