From b203ba6bdd26db82ba4d2f195798681f2e5e1fcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Fri, 21 Jan 2022 21:26:09 +0100 Subject: [PATCH] proton: Run steam from its Program Files (x86) location. For CoD: Black Ops 3. CW-Bug-Id: #19362 --- proton | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/proton b/proton index 8532c783..62ba5634 100755 --- a/proton +++ b/proton @@ -1304,7 +1304,11 @@ class Session: else: 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: remote_debug_proc.kill()