From 8212730c6f8cf3e5a76eaa14f4522bc30025851b Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Tue, 17 Sep 2013 12:19:18 +0100 Subject: [PATCH] Fixed issue #52. --- src/backend/metadata.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/backend/metadata.cpp b/src/backend/metadata.cpp index 2b0f3f74..c9a6ec16 100644 --- a/src/backend/metadata.cpp +++ b/src/backend/metadata.cpp @@ -265,6 +265,11 @@ namespace boss { // Get data from file contents using libespm. Assumes libespm has already been initialised. BOOST_LOG_TRIVIAL(trace) << "Opening plugin with libespm..."; boost::filesystem::path filepath = game.DataPath() / name; + + //In case the plugin is ghosted, but the extension already got trimmed. + if (!boost::filesystem::exists(filepath) && boost::filesystem::exists(filepath.string() + ".ghost")) + filepath += ".ghost"; + espm::File * file; if (game.Id() == g_game_tes4) file = new espm::tes4::File(filepath, game.espm_settings, false, headerOnly);