mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-15 08:52:04 +00:00
- added the option to look for music by using a truncated 8-character variant of the given name.
This workaround is needed because there's known old mods depending on this legacy behavior.
This commit is contained in:
parent
423fe60080
commit
6f4dfd9a61
1 changed files with 3 additions and 1 deletions
|
@ -192,7 +192,9 @@ static FileReader OpenMusic(const char* musicname)
|
|||
if (!FileExists(musicname))
|
||||
{
|
||||
int lumpnum;
|
||||
if ((lumpnum = fileSystem.CheckNumForFullName(musicname, true, ns_music)) == -1)
|
||||
lumpnum = fileSystem.CheckNumForFullName(musicname);
|
||||
if (lumpnum == -1) lumpnum = fileSystem.CheckNumForName(musicname, ns_music);
|
||||
if (lumpnum == -1)
|
||||
{
|
||||
Printf("Music \"%s\" not found\n", musicname);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue