mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
EMI: Hack around missing textures in demo
This commit is contained in:
@@ -399,8 +399,11 @@ Material *ResourceLoader::loadMaterial(const Common::String &filename, CMap *c)
|
||||
Common::SeekableReadStream *stream;
|
||||
|
||||
stream = openNewStreamFile(fname.c_str(), true);
|
||||
if(!stream)
|
||||
error("Could not find material %s", filename.c_str());
|
||||
if(!stream) {
|
||||
const Common::String replacement("fx/candle.sprb");
|
||||
warning("Could not find material %s, using %s instead", filename.c_str(), replacement.c_str());
|
||||
return loadMaterial(replacement, NULL);
|
||||
}
|
||||
|
||||
Material *result = new Material(fname, stream, c);
|
||||
delete stream;
|
||||
|
||||
Reference in New Issue
Block a user