ref: f6717da5ddf562a44cc1f8420a0a70a5038b6f1c
parent: 036484b643e36ef5e17685a0b92c68cfd7accc30
author: Simon Howard <fraggle@soulsphere.org>
date: Sat Nov 3 09:14:04 EDT 2018
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.
--- a/src/deh_main.c
+++ b/src/deh_main.c
@@ -413,7 +413,8 @@
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);
--- a/src/heretic/d_main.c
+++ b/src/heretic/d_main.c
@@ -910,7 +910,7 @@
{
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);
}