wad: Autoload both .wad and .lmp files.

Useful in the case of mods that are just .lmp replacements (DMXOPL?)
This commit is contained in:
Simon Howard 2018-11-03 13:12:12 -04:00
parent f5da1a45b1
commit 036484b643

View file

@ -207,7 +207,8 @@ void W_AutoLoadWADs(const char *path)
glob_t *glob;
const char *filename;
glob = I_StartGlob(path, "*.wad", GLOB_FLAG_NOCASE|GLOB_FLAG_SORTED);
glob = I_StartMultiGlob(path, GLOB_FLAG_NOCASE|GLOB_FLAG_SORTED,
"*.wad", "*.lmp", NULL);
for (;;)
{
filename = I_NextGlob(glob);