mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-14 01:19:59 +00:00
Fix checking for file extension in niftest
This commit is contained in:
parent
92b42624b0
commit
1a2c56fefb
@ -33,12 +33,12 @@ bool hasExtension(const std::filesystem::path& filename, const std::string& exte
|
||||
/// See if the file has the "nif" extension.
|
||||
bool isNIF(const std::filesystem::path& filename)
|
||||
{
|
||||
return hasExtension(filename, "nif");
|
||||
return hasExtension(filename, ".nif");
|
||||
}
|
||||
/// See if the file has the "bsa" extension.
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user