From 6beb2b1a0a93263e16a6f5a555d76e12b51ca94f Mon Sep 17 00:00:00 2001 From: Jan Date: Sat, 29 Jul 2023 22:17:18 +0200 Subject: Warn about the package dir, not the mod dir (#526) (cherry picked from commit e3f2c4c6622c83ac561f7e4cbf8601c50469d291) --- NorthstarDLL/mods/modmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'NorthstarDLL') diff --git a/NorthstarDLL/mods/modmanager.cpp b/NorthstarDLL/mods/modmanager.cpp index c54314c0..bf63fc41 100644 --- a/NorthstarDLL/mods/modmanager.cpp +++ b/NorthstarDLL/mods/modmanager.cpp @@ -627,7 +627,7 @@ void ModManager::LoadMods() // Use regex to match `AUTHOR-MOD-VERSION` pattern if (!std::regex_match(dir.path().string(), pattern)) { - spdlog::warn("The following directory did not match 'AUTHOR-MOD-VERSION': {}", modsDir.string()); + spdlog::warn("The following directory did not match 'AUTHOR-MOD-VERSION': {}", dir.path().string()); continue; // skip loading mod that doesn't match } if (fs::exists(modsDir) && fs::is_directory(modsDir)) -- cgit v1.2.3