@@ -1051,6 +1051,19 @@ class CompatData:
1051
1051
if os .path .isfile (srcfile ):
1052
1052
try_copy (srcfile , steam_dir + tgt , prefix = self .prefix_dir , track_file = tracked_files , link_debug = True )
1053
1053
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
+
1054
1067
#copy openvr files into place
1055
1068
makedirs (self .prefix_dir + "/drive_c/vrclient/bin" )
1056
1069
try_copy (g_proton .lib_dir + "wine/i386-windows/vrclient.dll" , "drive_c/vrclient/bin" ,
0 commit comments