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
This commit is contained in:
Alug committed 2024-07-26 15:03:01 +02:00
1 parent 78213a7ed5
commit 83f8591afa
1 file changed
+3
+3
View File
@@ -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)
{