mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 04:43:26 +00:00
Display an error message if the cutscene cannot be found. (Afterwards, ScummVM
will trigger an assertion and die, so this is still far from ideal...) svn-id: r35640
This commit is contained in:
parent
890808fa4b
commit
29a4403a21
@ -39,6 +39,8 @@
|
||||
#include "sound/audiostream.h"
|
||||
#include "sound/wave.h"
|
||||
|
||||
#include "gui/message.h"
|
||||
|
||||
namespace AGOS {
|
||||
|
||||
MoviePlayer::MoviePlayer(AGOSEngine *vm)
|
||||
@ -533,6 +535,12 @@ MoviePlayer *makeMoviePlayer(AGOSEngine *vm, const char *name) {
|
||||
return new MoviePlayerSMK(vm, baseName);
|
||||
}
|
||||
|
||||
char buf[60];
|
||||
|
||||
sprintf(buf, "Cutscene file '%s' not found", baseName);
|
||||
GUI::MessageDialog dialog(buf, "OK");
|
||||
dialog.runModal();
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user