mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- fixed: extended sound lookup must check the sound/ folder.
This commit is contained in:
parent
1439897b65
commit
e2f570a70a
1 changed files with 5 additions and 1 deletions
|
@ -142,7 +142,11 @@ int S_LookupSound(const char* fn)
|
|||
static const char * const sndformats[] = { "OGG", "FLAC", "WAV" };
|
||||
if (snd_extendedlookup)
|
||||
{
|
||||
int lump = fileSystem.FindFileWithExtensions(StripExtension(fn), sndformats, countof(sndformats));
|
||||
auto newfn = StripExtension(fn);
|
||||
int lump = fileSystem.FindFileWithExtensions(newfn, sndformats, countof(sndformats));
|
||||
if (lump >= 0) return lump;
|
||||
newfn = "sound/" + newfn;
|
||||
lump = fileSystem.FindFileWithExtensions(newfn, sndformats, countof(sndformats));
|
||||
if (lump >= 0) return lump;
|
||||
}
|
||||
return fileSystem.FindFile(fn);
|
||||
|
|
Loading…
Reference in a new issue