mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- always add movie and music subdirectories.
This commit is contained in:
parent
5c7b05a791
commit
7d7507d453
3 changed files with 6 additions and 4 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -149,8 +149,10 @@ int FDirectory::AddDirectory(const char *dirpath)
|
||||||
(fi[1] == '\0' ||
|
(fi[1] == '\0' ||
|
||||||
(fi[1] == '.' && fi[2] == '\0'))))
|
(fi[1] == '.' && fi[2] == '\0'))))
|
||||||
{
|
{
|
||||||
// Skip if requested and do not record . and .. directories.
|
// Movie and music subdirectories must always pass.
|
||||||
continue;
|
if (fi.CompareNoCase("movie") && fi.CompareNoCase("music"))
|
||||||
|
// Skip if requested and do not record . and .. directories.
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
FString newdir = dirpath;
|
FString newdir = dirpath;
|
||||||
newdir << fi << '/';
|
newdir << fi << '/';
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue