Merge branch 'fix_master_file' into 'master'

Fix checking whether content file is master file

See merge request OpenMW/openmw!1980
fix/shrink_builds
Alexei Kotov 3 years ago
commit ef978f080b

@ -34,7 +34,8 @@ void EsmLoader::load(const boost::filesystem::path& filepath, int& index, Loadin
mStore.load(*reader, listener, mDialogue);
if (!mMasterFileFormat.has_value() && Misc::StringUtils::ciEndsWith(reader->getName(), ".esm") && !Misc::StringUtils::ciEndsWith(reader->getName(), ".omwgame"))
if (!mMasterFileFormat.has_value() && (Misc::StringUtils::ciEndsWith(reader->getName(), ".esm")
|| Misc::StringUtils::ciEndsWith(reader->getName(), ".omwgame")))
mMasterFileFormat = reader->getFormat();
}

Loading…
Cancel
Save