proton: Copy Steam library files to C:/Program Files (x86)/Steam.

This commit is contained in:
Rémi Bernon 2020-08-05 11:16:34 +02:00 committed by Andrew Eikum
parent 6a9e719119
commit 1ae76adb07

17
proton
View File

@ -451,15 +451,18 @@ class CompatData:
#copy steam files into place #copy steam files into place
dst = self.prefix_dir + "/drive_c/Program Files (x86)/" dst = self.prefix_dir + "/drive_c/Program Files (x86)/"
makedirs(dst + "Steam") makedirs(dst + "Steam")
filestocopy = ["steamclient.dll", filestocopy = [("steamclient.dll", "steamclient.dll"),
"steamclient64.dll", ("steamclient64.dll", "steamclient64.dll"),
"Steam.dll"] ("GameOverlayRenderer64.dll", "GameOverlayRenderer64.dll"),
for f in filestocopy: ("SteamService.exe", "steam.exe"),
if os.path.isfile(steamdir + "/legacycompat/" + f): ("Steam.dll", "Steam.dll")]
dstfile = dst + "Steam/" + f for (src,tgt) in filestocopy:
srcfile = steamdir + '/legacycompat/' + src
if os.path.isfile(srcfile):
dstfile = dst + "Steam/" + tgt
if os.path.isfile(dstfile): if os.path.isfile(dstfile):
os.remove(dstfile) os.remove(dstfile)
try_copy(steamdir + "/legacycompat/" + f, dstfile) try_copy(srcfile, dstfile)
#copy openvr files into place #copy openvr files into place
dst = self.prefix_dir + "/drive_c/vrclient/bin/" dst = self.prefix_dir + "/drive_c/vrclient/bin/"