mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-24 13:01:42 +00:00
added -noautoload command line option.
This commit is contained in:
parent
4b6646da03
commit
39b78dede1
1 changed files with 12 additions and 9 deletions
|
@ -376,16 +376,19 @@ void InitFileSystem(TArray<GrpEntry>& groups)
|
|||
fileSystem.SetIwadNum(1);
|
||||
fileSystem.SetMaxIwadNum((int)Files.size() - 1);
|
||||
|
||||
D_AddConfigFiles(Files, "Global.Autoload", "*.grp", GameConfig);
|
||||
|
||||
size_t len;
|
||||
size_t lastpos = 0;
|
||||
|
||||
while (lastpos < LumpFilter.Len() && (len = strcspn(LumpFilter.GetChars() + lastpos, ".")) > 0)
|
||||
if (!Args->CheckParm("-noautoload"))
|
||||
{
|
||||
auto file = LumpFilter.Left(len + lastpos) + ".Autoload";
|
||||
D_AddConfigFiles(Files, file.GetChars(), "*.grp", GameConfig);
|
||||
lastpos += len + 1;
|
||||
D_AddConfigFiles(Files, "Global.Autoload", "*.grp", GameConfig);
|
||||
|
||||
size_t len;
|
||||
size_t lastpos = 0;
|
||||
|
||||
while (lastpos < LumpFilter.Len() && (len = strcspn(LumpFilter.GetChars() + lastpos, ".")) > 0)
|
||||
{
|
||||
auto file = LumpFilter.Left(len + lastpos) + ".Autoload";
|
||||
D_AddConfigFiles(Files, file.GetChars(), "*.grp", GameConfig);
|
||||
lastpos += len + 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (!insertdirectoriesafter && userConfig.AddFilesPre) for (auto& file : *userConfig.AddFilesPre)
|
||||
|
|
Loading…
Reference in a new issue