proton: Run steam from its Program Files (x86) location.

For CoD: Black Ops 3.

CW-Bug-Id: #19362
This commit is contained in:
Rémi Bernon 2022-01-21 21:26:09 +01:00 committed by Arkadiusz Hiler
parent bcccab62e0
commit b203ba6bdd

6
proton
View file

@ -1304,7 +1304,11 @@ class Session:
else: else:
remote_debug_proc = None remote_debug_proc = None
rc = self.run_proc([g_proton.wine64_bin, "c:\\windows\\system32\\steam.exe"] + sys.argv[2:] + self.cmdlineappend) # CoD: Black Ops 3 workaround
if os.environ.get("SteamGameId", 0) == "311210":
rc = self.run_proc([g_proton.wine_bin, "c:\\Program Files (x86)\\Steam\\steam.exe"] + sys.argv[2:] + self.cmdlineappend)
else:
rc = self.run_proc([g_proton.wine64_bin, "c:\\windows\\system32\\steam.exe"] + sys.argv[2:] + self.cmdlineappend)
if remote_debug_proc: if remote_debug_proc:
remote_debug_proc.kill() remote_debug_proc.kill()