aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2008-12-31 16:06:55 +0000
committerTorbjörn Andersson2008-12-31 16:06:55 +0000
commit29a4403a211424f7840a51603f0db0acfa907104 (patch)
tree9032ba34eedf6a7ea02e3a3f95a944c36e4d1434
parent890808fa4bc417d511493c14aae1cfffa75136b6 (diff)
downloadscummvm-rg350-29a4403a211424f7840a51603f0db0acfa907104.tar.gz
scummvm-rg350-29a4403a211424f7840a51603f0db0acfa907104.tar.bz2
scummvm-rg350-29a4403a211424f7840a51603f0db0acfa907104.zip
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
-rw-r--r--engines/agos/animation.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/agos/animation.cpp b/engines/agos/animation.cpp
index ed4a85a7d5..18eef79874 100644
--- a/engines/agos/animation.cpp
+++ b/engines/agos/animation.cpp
@@ -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;
}