- use the proper file names for loading -adddefs.

This commit is contained in:
Christoph Oelckers 2021-04-21 23:55:40 +02:00
parent eb573bea23
commit 9c3aa7bb6c

View file

@ -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");
} }
} }