1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-28 21:39:48 +00:00

Fix checking for file extension in niftest

This commit is contained in:
elsid 2023-02-08 21:25:01 +01:00
parent 92b42624b0
commit 1a2c56fefb
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625

View file

@ -33,12 +33,12 @@ bool hasExtension(const std::filesystem::path& filename, const std::string& exte
/// See if the file has the "nif" extension. /// See if the file has the "nif" extension.
bool isNIF(const std::filesystem::path& filename) bool isNIF(const std::filesystem::path& filename)
{ {
return hasExtension(filename, "nif"); return hasExtension(filename, ".nif");
} }
/// 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");
} }
/// Check all the nif files in a given VFS::Archive /// Check all the nif files in a given VFS::Archive