From afd3ac86867ca80a06522d550f5c87553b8364dd Mon Sep 17 00:00:00 2001 From: elf-alchemist Date: Tue, 7 Jan 2025 13:02:56 -0300 Subject: [PATCH] fix not reading `doom2-all/`, `doom1-all/` autoload directories (#2128) Closes #2127 Co-authored-by: Fabian Greffrath --- src/d_main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/d_main.c b/src/d_main.c index 64388297..4db5c09d 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -1393,6 +1393,15 @@ static void LoadIWadBase(void) { W_AddBaseDir("doom-all"); } + if (local_gamemission == doom) + { + W_AddBaseDir("doom1-all"); + } + else if (local_gamemission >= doom2 + && local_gamemission <= pack_plut) + { + W_AddBaseDir("doom2-all"); + } W_AddBaseDir(M_BaseName(wadfiles[0])); }