mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 09:56:30 +00:00
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:
parent
047f4a060b
commit
78b66ad14f
@ -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);
|
||||
|
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user