commit fdd360aa5cc5d14602a1cb8170453141ebdda9d7
Merge: c0c1771e 3de52324
Author: Simon Howard <fraggle+github@gmail.com>
AuthorDate: Wed Nov 28 00:35:55 2018 -0500
Commit: GitHub <noreply@github.com>
CommitDate: Wed Nov 28 00:35:55 2018 -0500
Merge pull request #1096 from AXDOOMER/master
Hexen: Call W_GenerateHashTable()
src/hexen/h2_main.c | 3 +++
1 file changed, 3 insertions(+)
diff --cc src/hexen/h2_main.c
index 88362e7a,95d73035..56649ed3
--- a/src/hexen/h2_main.c
+++ b/src/hexen/h2_main.c
@@@ -422,22 -422,11 +422,25 @@@ void D_DoomMain(void
D_SetGameDescription();
AdjustForMacIWAD();
+ //!
+ // @category mod
+ //
+ // Disable auto-loading of .wad files.
+ //
+ if (!M_ParmExists("-noautoload"))
+ {
+ char *autoload_dir;
+ autoload_dir = M_GetAutoloadDir("hexen.wad");
+ // TODO? DEH_AutoLoadPatches(autoload_dir);
+ W_AutoLoadWADs(autoload_dir);
+ free(autoload_dir);
+ }
+
HandleArgs();
+ // Generate the WAD hash table. Speed things up a bit.
+ W_GenerateHashTable();
+
I_PrintStartupBanner(gamedescription);
ST_Message("MN_Init: Init menu system.\n");