@@ -2232,6 +2232,20 @@ static const wchar_t *rt_folderstocreate[] = {
2232
2232
L"\\id1\\music" ,
2233
2233
};
2234
2234
static const wchar_t * rt_originalfiles [] = {
2235
+ L"\\id1\\PAK0.PAK" ,
2236
+ L"\\id1\\PAK1.PAK" ,
2237
+ L"\\rerelease\\id1\\music\\track02.ogg" ,
2238
+ L"\\rerelease\\id1\\music\\track03.ogg" ,
2239
+ L"\\rerelease\\id1\\music\\track04.ogg" ,
2240
+ L"\\rerelease\\id1\\music\\track05.ogg" ,
2241
+ L"\\rerelease\\id1\\music\\track06.ogg" ,
2242
+ L"\\rerelease\\id1\\music\\track07.ogg" ,
2243
+ L"\\rerelease\\id1\\music\\track08.ogg" ,
2244
+ L"\\rerelease\\id1\\music\\track09.ogg" ,
2245
+ L"\\rerelease\\id1\\music\\track10.ogg" ,
2246
+ L"\\rerelease\\id1\\music\\track11.ogg" ,
2247
+ };
2248
+ static const wchar_t * rt_dstfiles [] = {
2235
2249
L"\\id1\\PAK0.PAK" ,
2236
2250
L"\\id1\\PAK1.PAK" ,
2237
2251
L"\\id1\\music\\track02.ogg" ,
@@ -2254,18 +2268,20 @@ static qboolean RT_NeedToCopyFromSteam (const char *gamename)
2254
2268
return false;
2255
2269
}
2256
2270
2271
+ assert (countof (rt_dstfiles ) == countof (rt_originalfiles ));
2272
+
2257
2273
wchar_t cur_directory [1024 ] = L"" ;
2258
2274
if (GetCurrentDirectoryW (countof (cur_directory ), cur_directory ) == 0 )
2259
2275
{
2260
2276
return false;
2261
2277
}
2262
2278
2263
2279
qboolean filesmissing = false;
2264
- for (int i = 0 ; i < (int )countof (rt_originalfiles ); i ++ )
2280
+ for (int i = 0 ; i < (int )countof (rt_dstfiles ); i ++ )
2265
2281
{
2266
2282
wchar_t dst_path [1024 ] = L"" ;
2267
2283
wcscat (dst_path , cur_directory );
2268
- wcscat (dst_path , rt_originalfiles [i ]);
2284
+ wcscat (dst_path , rt_dstfiles [i ]);
2269
2285
2270
2286
qboolean exists = GetFileAttributesW (dst_path ) != INVALID_FILE_ATTRIBUTES ;
2271
2287
if (!exists )
@@ -2402,7 +2418,7 @@ static void RT_CopyFromSteamFolder ()
2402
2418
2403
2419
wchar_t dst_path [1024 ] = L"" ;
2404
2420
wcscat (dst_path , cur_directory );
2405
- wcscat (dst_path , rt_originalfiles [i ]);
2421
+ wcscat (dst_path , rt_dstfiles [i ]);
2406
2422
2407
2423
if (!CopyFileW (src_path , dst_path , FALSE))
2408
2424
{
0 commit comments