Skip to content

Commit 71ae5c3

Browse files
committed
Add work-around for IL-2 Sturmovik Cliffs of Dover.
CW-Bug-Id: #19152
1 parent 6aacadb commit 71ae5c3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

proton

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,19 @@ class CompatData:
10511051
if os.path.isfile(srcfile):
10521052
try_copy(srcfile, steam_dir + tgt, prefix=self.prefix_dir, track_file=tracked_files, link_debug=True)
10531053

1054+
# CW Bug 19152. IL-2 Sturmovik: Cliffs of Dover Blitz Edition needs user's localconfig.vdf
1055+
if os.environ.get("SteamGameId", 0) == "754530":
1056+
srcdir = os.path.join(steamdir, 'userdata')
1057+
dstdir = os.path.join(self.prefix_dir, steam_dir, 'userdata')
1058+
# figuring out the current user is hard, so copy the config for all users
1059+
for userid in os.listdir(srcdir):
1060+
srcvdf = os.path.join(srcdir, userid, 'config', 'localconfig.vdf')
1061+
dstvdf = os.path.join(dstdir, userid, 'config', 'localconfig.vdf')
1062+
if not os.path.exists(srcvdf):
1063+
continue
1064+
os.makedirs(os.path.dirname(dstvdf), exist_ok=True)
1065+
shutil.copyfile(srcvdf, dstvdf)
1066+
10541067
#copy openvr files into place
10551068
makedirs(self.prefix_dir + "/drive_c/vrclient/bin")
10561069
try_copy(g_proton.lib_dir + "wine/i386-windows/vrclient.dll", "drive_c/vrclient/bin",

0 commit comments

Comments
 (0)