From f6717da5ddf562a44cc1f8420a0a70a5038b6f1c Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 3 Nov 2018 13:14:04 -0400 Subject: [PATCH] heretic: Add autoloading for .hhe patches. Heretic uses HHE instead of .deh, which have a different extension, although some HHE patches actually have the .deh extension. --- src/deh_main.c | 3 ++- src/heretic/d_main.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/deh_main.c b/src/deh_main.c index 0a929ec8..1f27e858 100644 --- a/src/deh_main.c +++ b/src/deh_main.c @@ -413,7 +413,8 @@ void DEH_AutoLoadPatches(const char *path) const char *filename; glob_t *glob; - glob = I_StartGlob(path, "*.deh", GLOB_FLAG_NOCASE|GLOB_FLAG_SORTED); + glob = I_StartMultiGlob(path, GLOB_FLAG_NOCASE|GLOB_FLAG_SORTED, + "*.deh", "*.hhe", NULL); for (;;) { filename = I_NextGlob(glob); diff --git a/src/heretic/d_main.c b/src/heretic/d_main.c index 4182d1c2..21bd2889 100644 --- a/src/heretic/d_main.c +++ b/src/heretic/d_main.c @@ -910,7 +910,7 @@ void D_DoomMain(void) { char *autoload_dir; autoload_dir = M_GetAutoloadDir("heretic.wad"); - // TODO? DEH_AutoLoadPatches(autoload_dir); + DEH_AutoLoadPatches(autoload_dir); W_AutoLoadWADs(autoload_dir); free(autoload_dir); }