commit 036484b643e36ef5e17685a0b92c68cfd7accc30
Author: Simon Howard <fraggle@soulsphere.org>
AuthorDate: Sat Nov 3 13:12:12 2018 -0400
Commit: Simon Howard <fraggle@soulsphere.org>
CommitDate: Sat Nov 3 13:12:12 2018 -0400
wad: Autoload both .wad and .lmp files.
Useful in the case of mods that are just .lmp replacements (DMXOPL?)
---
src/w_main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/w_main.c b/src/w_main.c
index a08f4172..ab32d9fe 100644
--- a/src/w_main.c
+++ b/src/w_main.c
@@ -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);