added -noautoload command line option.

This commit is contained in:
Christoph Oelckers 2024-02-04 14:57:25 +01:00
parent 4b6646da03
commit 39b78dede1

View file

@ -376,6 +376,8 @@ void InitFileSystem(TArray<GrpEntry>& groups)
fileSystem.SetIwadNum(1);
fileSystem.SetMaxIwadNum((int)Files.size() - 1);
if (!Args->CheckParm("-noautoload"))
{
D_AddConfigFiles(Files, "Global.Autoload", "*.grp", GameConfig);
size_t len;
@ -387,6 +389,7 @@ void InitFileSystem(TArray<GrpEntry>& groups)
D_AddConfigFiles(Files, file.GetChars(), "*.grp", GameConfig);
lastpos += len + 1;
}
}
if (!insertdirectoriesafter && userConfig.AddFilesPre) for (auto& file : *userConfig.AddFilesPre)
{