mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fix Fallout 4 archive loading detection
This fixes the regression made in
eaf3ea2af683fb5fd3c56855a74a6ef1ef7ad3cb to the functionality added in
547106bc55.
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user