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:12 +02:00
1 parent ce2398fdb7
commit f83090e299
1 file changed
+3
+3
View File
@@ -1039,7 +1039,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)
{