ref: f1d557ff6344e84595a5eb0b2ac2639224286d5b
parent: 2e86d1db221b74df8de8cbdf329eb3aff6146869
parent: 05d7b38c619223424c4ea9df4faf11ac18b01a8e
author: Fabian Greffrath <fabian@greffrath.com>
date: Thu Jul 11 14:20:33 EDT 2019
Merge pull request #1183 from chocolate-doom/autoloadcommon doom: support common auto-loaded files for all Doom flavors
--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -1514,6 +1514,16 @@
if (!M_ParmExists("-noautoload") && gamemode != shareware)
{
char *autoload_dir;
+
+ // common auto-loaded files for all Doom flavors
+
+ autoload_dir = M_GetAutoloadDir("doom-all");
+ DEH_AutoLoadPatches(autoload_dir);
+ W_AutoLoadWADs(autoload_dir);
+ free(autoload_dir);
+
+ // auto-loaded files per IWAD
+
autoload_dir = M_GetAutoloadDir(D_SaveGameIWADName(gamemission));
DEH_AutoLoadPatches(autoload_dir);
W_AutoLoadWADs(autoload_dir);