From 9c3aa7bb6c289bd61f9bcac3bf312df0d54bc69e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 21 Apr 2021 23:55:40 +0200 Subject: [PATCH] - use the proper file names for loading -adddefs. --- source/core/defparser.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/core/defparser.cpp b/source/core/defparser.cpp index b4ed74373..71b9c399e 100644 --- a/source/core/defparser.cpp +++ b/source/core/defparser.cpp @@ -2146,15 +2146,11 @@ void loaddefinitionsfile(const char* fn, bool loadadds, bool cumulative) if (userConfig.AddDefs && loadadds) for (auto& m : *userConfig.AddDefs) { - int lump = fileSystem.FindFile(fn); + int lump = fileSystem.FindFile(m); if (lump >= 0) { - Printf(PRINT_NONOTIFY, "Loading \"%s\"\n", fn); + Printf(PRINT_NONOTIFY, "Loading \"%s\"\n", m.GetChars()); 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"); } }