Skip to content

Commit 01194b8

Browse files
committed
- only rerelease folder has music in steam
1 parent 6c33ddf commit 01194b8

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

Quake/common.c

+19-3
Original file line numberDiff line numberDiff line change
@@ -2232,6 +2232,20 @@ static const wchar_t *rt_folderstocreate[] = {
22322232
L"\\id1\\music",
22332233
};
22342234
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[] = {
22352249
L"\\id1\\PAK0.PAK",
22362250
L"\\id1\\PAK1.PAK",
22372251
L"\\id1\\music\\track02.ogg",
@@ -2254,18 +2268,20 @@ static qboolean RT_NeedToCopyFromSteam (const char *gamename)
22542268
return false;
22552269
}
22562270

2271+
assert (countof (rt_dstfiles) == countof (rt_originalfiles));
2272+
22572273
wchar_t cur_directory[1024] = L"";
22582274
if (GetCurrentDirectoryW (countof (cur_directory), cur_directory) == 0)
22592275
{
22602276
return false;
22612277
}
22622278

22632279
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++)
22652281
{
22662282
wchar_t dst_path[1024] = L"";
22672283
wcscat (dst_path, cur_directory);
2268-
wcscat (dst_path, rt_originalfiles[i]);
2284+
wcscat (dst_path, rt_dstfiles[i]);
22692285

22702286
qboolean exists = GetFileAttributesW (dst_path) != INVALID_FILE_ATTRIBUTES;
22712287
if (!exists)
@@ -2402,7 +2418,7 @@ static void RT_CopyFromSteamFolder ()
24022418

24032419
wchar_t dst_path[1024] = L"";
24042420
wcscat (dst_path, cur_directory);
2405-
wcscat (dst_path, rt_originalfiles[i]);
2421+
wcscat (dst_path, rt_dstfiles[i]);
24062422

24072423
if (!CopyFileW (src_path, dst_path, FALSE))
24082424
{

0 commit comments

Comments
 (0)