Fix Fallout 4 archive loading detection

This fixes the regression made in
eaf3ea2af683fb5fd3c56855a74a6ef1ef7ad3cb to the functionality added in
547106bc55.
This commit is contained in:
Oliver Hamlet
2015-12-11 17:29:43 +00:00
parent 68f01ae349
commit 9e28bfa31d
+2 -2
View File
@@ -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")) {