mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-21 11:11:16 +00:00
- use the proper file names for loading -adddefs.
This commit is contained in:
parent
eb573bea23
commit
9c3aa7bb6c
1 changed files with 2 additions and 6 deletions
|
@ -2146,15 +2146,11 @@ void loaddefinitionsfile(const char* fn, bool loadadds, bool cumulative)
|
||||||
|
|
||||||
if (userConfig.AddDefs && loadadds) for (auto& m : *userConfig.AddDefs)
|
if (userConfig.AddDefs && loadadds) for (auto& m : *userConfig.AddDefs)
|
||||||
{
|
{
|
||||||
int lump = fileSystem.FindFile(fn);
|
int lump = fileSystem.FindFile(m);
|
||||||
if (lump >= 0)
|
if (lump >= 0)
|
||||||
{
|
{
|
||||||
Printf(PRINT_NONOTIFY, "Loading \"%s\"\n", fn);
|
Printf(PRINT_NONOTIFY, "Loading \"%s\"\n", m.GetChars());
|
||||||
parseit(lump);
|
parseit(lump);
|
||||||
}
|
}
|
||||||
|
|
||||||
Printf("Loading module \"%s\"\n", m.GetChars());
|
|
||||||
performInclude(nullptr, m, nullptr); // Q: should we let the external script see our symbol table?
|
|
||||||
Printf(PRINT_NONOTIFY, "\n");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue