[Scummvm-cvs-logs] SF.net SVN: scummvm:[35640] scummvm/trunk/engines/agos/animation.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Wed Dec 31 17:06:56 CET 2008


Revision: 35640
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35640&view=rev
Author:   eriktorbjorn
Date:     2008-12-31 16:06:55 +0000 (Wed, 31 Dec 2008)

Log Message:
-----------
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...)

Modified Paths:
--------------
    scummvm/trunk/engines/agos/animation.cpp

Modified: scummvm/trunk/engines/agos/animation.cpp
===================================================================
--- scummvm/trunk/engines/agos/animation.cpp	2008-12-31 15:23:08 UTC (rev 35639)
+++ scummvm/trunk/engines/agos/animation.cpp	2008-12-31 16:06:55 UTC (rev 35640)
@@ -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 @@
 		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;
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list