mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-05-30 15:27:40 +03:00
parent
6aacadb38e
commit
71ae5c3cec
13
proton
13
proton
@ -1051,6 +1051,19 @@ class CompatData:
|
|||||||
if os.path.isfile(srcfile):
|
if os.path.isfile(srcfile):
|
||||||
try_copy(srcfile, steam_dir + tgt, prefix=self.prefix_dir, track_file=tracked_files, link_debug=True)
|
try_copy(srcfile, steam_dir + tgt, prefix=self.prefix_dir, track_file=tracked_files, link_debug=True)
|
||||||
|
|
||||||
|
# CW Bug 19152. IL-2 Sturmovik: Cliffs of Dover Blitz Edition needs user's localconfig.vdf
|
||||||
|
if os.environ.get("SteamGameId", 0) == "754530":
|
||||||
|
srcdir = os.path.join(steamdir, 'userdata')
|
||||||
|
dstdir = os.path.join(self.prefix_dir, steam_dir, 'userdata')
|
||||||
|
# figuring out the current user is hard, so copy the config for all users
|
||||||
|
for userid in os.listdir(srcdir):
|
||||||
|
srcvdf = os.path.join(srcdir, userid, 'config', 'localconfig.vdf')
|
||||||
|
dstvdf = os.path.join(dstdir, userid, 'config', 'localconfig.vdf')
|
||||||
|
if not os.path.exists(srcvdf):
|
||||||
|
continue
|
||||||
|
os.makedirs(os.path.dirname(dstvdf), exist_ok=True)
|
||||||
|
shutil.copyfile(srcvdf, dstvdf)
|
||||||
|
|
||||||
#copy openvr files into place
|
#copy openvr files into place
|
||||||
makedirs(self.prefix_dir + "/drive_c/vrclient/bin")
|
makedirs(self.prefix_dir + "/drive_c/vrclient/bin")
|
||||||
try_copy(g_proton.lib_dir + "wine/i386-windows/vrclient.dll", "drive_c/vrclient/bin",
|
try_copy(g_proton.lib_dir + "wine/i386-windows/vrclient.dll", "drive_c/vrclient/bin",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user