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

4
proton
View file

@ -1304,6 +1304,10 @@ class Session:
else: else:
remote_debug_proc = None remote_debug_proc = None
# 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) 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: