1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-03 15:09:39 +00:00

Fix BA2 handling in niftest

This commit is contained in:
Alexei Kotov 2023-09-17 18:58:37 +03:00
parent 9ae1077808
commit 1e3da5516a

View file

@ -38,7 +38,7 @@ bool isNIF(const std::filesystem::path& filename)
/// See if the file has the "bsa" extension. /// See if the file has the "bsa" extension.
bool isBSA(const std::filesystem::path& filename) bool isBSA(const std::filesystem::path& filename)
{ {
return hasExtension(filename, ".bsa"); return hasExtension(filename, ".bsa") || hasExtension(filename, ".ba2");
} }
std::unique_ptr<VFS::Archive> makeBsaArchive(const std::filesystem::path& path) std::unique_ptr<VFS::Archive> makeBsaArchive(const std::filesystem::path& path)
@ -216,7 +216,7 @@ int main(int argc, char** argv)
else else
{ {
std::cerr << "ERROR: \"" << Files::pathToUnicodeString(path) 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) catch (std::exception& e)