AGS: Skip video in Donna: Avenger of blood instead of crashing

The game opens with a short video showing the developer logo and
playing some "music", which uses an unsupported codec.
Fixes #13816
This commit is contained in:
Walter Agazzi 2023-06-07 17:53:22 +02:00
parent f2c87bc4ac
commit 2930c0cd8d

View File

@ -19,6 +19,7 @@
*
*/
#include "common/config-manager.h"
#include "ags/engine/ac/game_setup.h"
#include "ags/engine/ac/game_state.h"
#include "ags/engine/ac/global_audio.h"
@ -94,6 +95,15 @@ void PlayVideo(const char *name, int skip, int scr_flags) {
if (_G(debug_flags) & DBG_NOVIDEO)
return;
// WORKAROUND: This video uses an unsupported codec and
// the decoder current implementation doesn't allow to
// continue gracefully
if (ConfMan.get("gameid") == "donnaavengerofblood" &&
!strcmp(name, "terminus")) {
warning("Skipped unsupported \'terminus\' video");
return;
}
// Convert PlayVideo flags to common video flags
/* NOTE: historically using decimal "flags"
default (0): the video will be played at original size,