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:
Torbjörn Andersson 2008-12-31 16:06:55 +00:00
parent 890808fa4b
commit 29a4403a21

View File

@ -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;
}