- always add movie and music subdirectories.

This commit is contained in:
Christoph Oelckers 2019-12-07 00:57:45 +01:00
parent 5c7b05a791
commit 7d7507d453
3 changed files with 6 additions and 4 deletions

View file

@ -375,7 +375,7 @@ static void PrecacheSounds(void)
if (pNode->ResType() == NAME_RAW || pNode->ResType() == NAME_SFX) if (pNode->ResType() == NAME_RAW || pNode->ResType() == NAME_SFX)
{ {
pNode->Get(); pNode->Get();
if ((i&15) == 15) gameHandleEvents(); // don't do this too often. That made sense in 1996 but not in 2019 //if ((i&15) == 15) gameHandleEvents(); // don't do this too often. That made sense in 1996 but not in 2019
} }
} }
} }

View file

@ -149,6 +149,8 @@ int FDirectory::AddDirectory(const char *dirpath)
(fi[1] == '\0' || (fi[1] == '\0' ||
(fi[1] == '.' && fi[2] == '\0')))) (fi[1] == '.' && fi[2] == '\0'))))
{ {
// Movie and music subdirectories must always pass.
if (fi.CompareNoCase("movie") && fi.CompareNoCase("music"))
// Skip if requested and do not record . and .. directories. // Skip if requested and do not record . and .. directories.
continue; continue;
} }

View file

@ -129,7 +129,7 @@ bool D_AddFile (TArray<FString> &wadfiles, const char *file, bool check = true,
if (check && !DirEntryExists (file)) if (check && !DirEntryExists (file))
{ {
const char *f = BaseFileSearch (file, ".wad", false); const char *f = BaseFileSearch (file, ".grp", false);
if (f == NULL) if (f == NULL)
{ {
Printf ("Can't find '%s'\n", file); Printf ("Can't find '%s'\n", file);