shithub: choc

Download patch

ref: 00802f2d6d2e18f4b3528a8dbaa7c63180e71eb2
parent: 6e746bd6b45259360c61e5e3aa8f96a0f639d15b
author: Fabian Greffrath <fabian@greffrath.com>
date: Wed Jun 26 07:46:01 EDT 2019

doom: support common auto-loaded files for all Doom flavors

Fixes: #1182

--- 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("common");
+        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);