mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-28 06:28:20 +03:00
proton: Copy Steam library files to C:/Program Files (x86)/Steam.
This commit is contained in:
parent
6a9e719119
commit
1ae76adb07
17
proton
17
proton
@ -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/"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user