From 1ae76adb074ed740779dfbbd4bd9724ff3e8ebc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Wed, 5 Aug 2020 11:16:34 +0200 Subject: [PATCH] proton: Copy Steam library files to C:/Program Files (x86)/Steam. --- proton | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/proton b/proton index f8e92d56..5bc8dbca 100755 --- a/proton +++ b/proton @@ -451,15 +451,18 @@ class CompatData: #copy steam files into place dst = self.prefix_dir + "/drive_c/Program Files (x86)/" makedirs(dst + "Steam") - filestocopy = ["steamclient.dll", - "steamclient64.dll", - "Steam.dll"] - for f in filestocopy: - if os.path.isfile(steamdir + "/legacycompat/" + f): - dstfile = dst + "Steam/" + f + filestocopy = [("steamclient.dll", "steamclient.dll"), + ("steamclient64.dll", "steamclient64.dll"), + ("GameOverlayRenderer64.dll", "GameOverlayRenderer64.dll"), + ("SteamService.exe", "steam.exe"), + ("Steam.dll", "Steam.dll")] + for (src,tgt) in filestocopy: + srcfile = steamdir + '/legacycompat/' + src + if os.path.isfile(srcfile): + dstfile = dst + "Steam/" + tgt if os.path.isfile(dstfile): os.remove(dstfile) - try_copy(steamdir + "/legacycompat/" + f, dstfile) + try_copy(srcfile, dstfile) #copy openvr files into place dst = self.prefix_dir + "/drive_c/vrclient/bin/"