TOON: Make Virgin logo movie optional for demo

Not all demo versions seem to include the Virgin logo movie, so skip playing it
if it does not exist.
This commit is contained in:
Coen Rampen 2021-08-30 22:27:08 +02:00
parent 047f4a060b
commit 78b66ad14f
2 changed files with 6 additions and 2 deletions

View File

@ -87,8 +87,11 @@ void Movie::play(const Common::String &video, int32 flags) {
_playing = true;
if (flags & 1)
_vm->getAudioManager()->setMusicVolume(0);
if (!_decoder->loadFile(video.c_str()))
if (!_decoder->loadFile(video.c_str())) {
if (flags & 2)
return;
error("Unable to play video %s", video.c_str());
}
_subtitle->load(video.c_str());
playVideo(isFirstIntroVideo);
_vm->flushPalette(true);

View File

@ -1132,7 +1132,8 @@ Common::Error ToonEngine::run() {
if (!loadedGame) {
// play producer intro
getMoviePlayer()->play("VIELOGOM.SMK", 0x10);
// not all demo versions include the logo video
getMoviePlayer()->play("VIELOGOM.SMK", _isDemo ? 0x12 : 0x10);
// show mainmenu
if (!showMainmenu(loadedGame)) {