proton: Delete Steam files before copying them

This commit is contained in:
Andrew Eikum 2018-02-20 11:20:29 -06:00
parent c32f46cf00
commit d5c916f69c

5
proton
View File

@ -126,7 +126,10 @@ filestocopy = ["steamclient.dll",
"Steam.dll"]
for f in filestocopy:
if os.path.isfile(steamdir + f):
shutil.copy(steamdir + f, dst + "Steam/" + f)
dstfile = dst + "Steam/" + f
if os.path.isfile(dstfile):
os.remove(dstfile)
shutil.copy(steamdir + f, dstfile)
#copy openvr files into place
dst = prefix + "/drive_c/vrclient/bin/"