DIRECTOR: Do not error on bad movies

This commit is contained in:
Eugene Sandulenko 2020-03-28 16:41:39 +01:00
parent 4d9f49d41f
commit 0ae5ca631c

View File

@ -142,7 +142,10 @@ void Score::loadArchive() {
}
// Score
assert(_movieArchive->hasResource(MKTAG('V', 'W', 'S', 'C'), -1));
if (!_movieArchive->hasResource(MKTAG('V', 'W', 'S', 'C'), -1)) {
warning("Score::loadArchive(): Wrong movie format. VWSC resource missing");
return;
}
loadFrames(*_movieArchive->getFirstResource(MKTAG('V', 'W', 'S', 'C')));
// Configuration Information