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:
parent
92b42624b0
commit
1a2c56fefb
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue