From 5cabe7ec3f567f6a15bbffde73cd6fa9cb30dea9 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sun, 5 Jan 2025 11:08:18 +0000 Subject: [PATCH] Log when a .ghost file extension is added --- src/api/game/game.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api/game/game.cpp b/src/api/game/game.cpp index e4da8675..77896812 100644 --- a/src/api/game/game.cpp +++ b/src/api/game/game.cpp @@ -148,6 +148,10 @@ std::filesystem::path ResolvePluginPath( // In case the plugin is ghosted. if (!std::filesystem::exists(absolutePath)) { + const auto logger = loot::getLogger(); + if (logger) { + logger->debug("Could not find plugin at {}, adding {} file extension", absolutePath.u8string(), loot::GHOST_FILE_EXTENSION); + } absolutePath += loot::GHOST_FILE_EXTENSION; }