Add error message when not being able to load technique when in material loader

This commit is contained in:
Jan 2022-09-15 19:54:42 +02:00
parent 61ba44d8ba
commit 2b92bd3653

View File

@ -881,7 +881,10 @@ namespace IW4
const auto techniqueFileName = AssetLoaderTechniqueSet::GetTechniqueFileName(techniqueName);
const auto file = m_search_path->Open(techniqueFileName);
if (!file.IsOpen())
{
std::cerr << "Failed to find file for technique \"" << techniqueName << "\"\n";
return nullptr;
}
state_map::StateMapFromTechniqueExtractor extractor;
const techset::TechniqueFileReader reader(*file.m_stream, techniqueFileName, &extractor);