Skip to content

Commit

Permalink
Log when a .ghost file extension is added
Browse files Browse the repository at this point in the history
  • Loading branch information
Ortham committed Jan 5, 2025
1 parent 32db24e commit 5cabe7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5cabe7e

Please sign in to comment.