From 1e3da5516a603b17e56e116319b2ce5bbac540ef Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Sun, 17 Sep 2023 18:58:37 +0300 Subject: [PATCH] Fix BA2 handling in niftest --- apps/niftest/niftest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/niftest/niftest.cpp b/apps/niftest/niftest.cpp index 06f2110e69..004e45765c 100644 --- a/apps/niftest/niftest.cpp +++ b/apps/niftest/niftest.cpp @@ -38,7 +38,7 @@ bool isNIF(const std::filesystem::path& filename) /// See if the file has the "bsa" extension. bool isBSA(const std::filesystem::path& filename) { - return hasExtension(filename, ".bsa"); + return hasExtension(filename, ".bsa") || hasExtension(filename, ".ba2"); } std::unique_ptr makeBsaArchive(const std::filesystem::path& path) @@ -216,7 +216,7 @@ int main(int argc, char** argv) else { std::cerr << "ERROR: \"" << Files::pathToUnicodeString(path) - << "\" is not a nif file, bsa file, or directory!" << std::endl; + << "\" is not a nif file, bsa/ba2 file, or directory!" << std::endl; } } catch (std::exception& e)