blob: 4f77c11541d262b8bbe50065f30b271324007c25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import os, shlex, pathlib
flag = "BAKKES"
def update(user_settings):
promptless = os.environ.get("PROMPTLESS", "0") == "1"
dll = "bakkesmod_promptless.dll" if promptless else "bakkesmod_official.dll"
pfx = pathlib.Path(os.environ["STEAM_COMPAT_DATA_PATH"]) / \
pathlib.Path("pfx/drive_c/users/steamuser/AppData/Roaming/bakkesmod")
dll_path = pfx / "bakkesmod" / "dll"
try:
os.remove(dll_path / "bakkesmod.dll")
finally:
os.symlink(dll_path / dll, dll_path / "bakkesmod.dll")
user_settings.update({"PROTON_REMOTE_DEBUG_CMD": shlex.join((
str(pfx / "inject.exe"), "launching"))})
|