From 9e28bfa31d7dfa113ea8b181fd97d64a860581fa Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Fri, 11 Dec 2015 17:29:43 +0000 Subject: [PATCH] Fix Fallout 4 archive loading detection This fixes the regression made in eaf3ea2af683fb5fd3c56855a74a6ef1ef7ad3cb to the functionality added in 547106bc5546ade7a08c6f7018dd384e7efba088. --- src/backend/plugin/plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/plugin/plugin.cpp b/src/backend/plugin/plugin.cpp index 790709db..e44181ec 100644 --- a/src/backend/plugin/plugin.cpp +++ b/src/backend/plugin/plugin.cpp @@ -92,8 +92,8 @@ namespace loot { _isActive = game.IsPluginActive(Name()); // Get whether the plugin loads an archive (BSA/BA2) or not. - if (game.Id() == Game::tes5) { - // Skyrim plugins only load BSAs that exactly match their basename. + if (game.Id() == Game::tes5 || game.Id() == Game::fo4) { + // Skyrim and Fallout 4 plugins only load archives that exactly match their basename. _loadsArchive = boost::filesystem::exists(game.DataPath() / (Name().substr(0, Name().length() - 3) + "bsa")); } else if (game.Id() != Game::tes4 || boost::iends_with(Name(), ".esp")) {