mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +00:00
Add error message when not being able to load technique when in material loader
This commit is contained in:
parent
61ba44d8ba
commit
2b92bd3653
@ -881,7 +881,10 @@ namespace IW4
|
|||||||
const auto techniqueFileName = AssetLoaderTechniqueSet::GetTechniqueFileName(techniqueName);
|
const auto techniqueFileName = AssetLoaderTechniqueSet::GetTechniqueFileName(techniqueName);
|
||||||
const auto file = m_search_path->Open(techniqueFileName);
|
const auto file = m_search_path->Open(techniqueFileName);
|
||||||
if (!file.IsOpen())
|
if (!file.IsOpen())
|
||||||
|
{
|
||||||
|
std::cerr << "Failed to find file for technique \"" << techniqueName << "\"\n";
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
state_map::StateMapFromTechniqueExtractor extractor;
|
state_map::StateMapFromTechniqueExtractor extractor;
|
||||||
const techset::TechniqueFileReader reader(*file.m_stream, techniqueFileName, &extractor);
|
const techset::TechniqueFileReader reader(*file.m_stream, techniqueFileName, &extractor);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user