bool seq_StopFullScreenVideo(void) { StopDriverMode(); if (!seq_AnySeqLeft()) { loop_ClearVideoPlaybackMode(); } seq_Shutdown(); return true; }
BOOL seq_StopFullScreenVideo(void) { StopDriverMode(); if (!seq_AnySeqLeft()) { loop_ClearVideoPlaybackMode(); } seq_Shutdown(); if (!seq_AnySeqLeft()) { if ( g_bResumeInGame == true ) { resetDesignPauseState(); intAddReticule(); g_bResumeInGame = false; } } return true; }
/* The video playback loop */ void videoLoop() { bool videoFinished; ASSERT(videoMode == 1, "videoMode out of sync"); // display a frame of the FMV videoFinished = !seq_UpdateFullScreenVideo(nullptr); pie_ScreenFlip(CLEAR_BLACK); // should we stop playing? if (videoFinished || keyPressed(KEY_ESC) || mouseReleased(MOUSE_LMB)) { seq_StopFullScreenVideo(); //set the next video off - if any if (videoFinished && seq_AnySeqLeft()) { seq_StartNextFullScreenVideo(); } else { // remove the intelligence screen if necessary if (messageIsImmediate()) { intResetScreen(true); setMessageImmediate(false); } //don't do the callback if we're playing the win/lose video if (!getScriptWinLoseVideo()) { eventFireCallbackTrigger((TRIGGER_TYPE)CALL_VIDEO_QUIT); } else if (!bMultiPlayer) { displayGameOver(getScriptWinLoseVideo() == PLAY_WIN, false); } triggerEvent(TRIGGER_VIDEO_QUIT); } } }