mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
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:
parent
f2c87bc4ac
commit
2930c0cd8d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user