1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 15:45:33 +00:00

Merge branch 'case_insensitive_formats' into 'master'

Check extension in lower case

See merge request OpenMW/openmw!1466
This commit is contained in:
psi29a 2021-12-09 15:03:05 +00:00
commit 0f1f34baa5

View file

@ -218,7 +218,7 @@ namespace EsmLoader
for (std::size_t i = 0; i < contentFiles.size(); ++i)
{
const std::string &file = contentFiles[i];
const std::string extension = boost::filesystem::path(file).extension().string();
const std::string extension = Misc::StringUtils::lowerCase(boost::filesystem::path(file).extension().string());
if (supportedFormats.find(extension) == supportedFormats.end())
{