From 83f8591afaee8a7905edbb98c8599f9369153dbf Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 26 Jul 2024 15:03:01 +0200 Subject: [PATCH] when no autoload config is found skip everything in D_AddAutoloadFiles stuff doesent need to run if theres nothing to autoload so things can be skipped --- src/d_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/d_main.c b/src/d_main.c index fb81a7d39..2e507c87a 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -1054,7 +1054,10 @@ static void D_FindAddonsToAutoload(void) // If the file is found, run our shit if (!autoloadconfigfile) // nope outta here + { + wasautoloaded = postautoloaded = true; // so D_AddAutoloadFiles can skip everything since nothings there to autoload return; + } while (fgets(wadsToAutoload, sizeof wadsToAutoload, autoloadconfigfile) != NULL) {