[Scummvm-cvs-logs] CVS: scummvm/scumm script_v8.cpp,2.51,2.52

James Brown ender at users.sourceforge.net
Wed Dec 25 18:27:03 CET 2002


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv9844/scumm

Modified Files:
	script_v8.cpp 
Log Message:
SMUSH playback opcode


Index: script_v8.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v8.cpp,v
retrieving revision 2.51
retrieving revision 2.52
diff -u -d -r2.51 -r2.52
--- script_v8.cpp	26 Dec 2002 02:18:45 -0000	2.51
+++ script_v8.cpp	26 Dec 2002 02:26:38 -0000	2.52
@@ -27,7 +27,8 @@
 #include "sound.h"
 #include "verbs.h"
 
-#include "nut_renderer.h"
+#include "smush/player.h"
+#include "smush/scumm_renderer.h"
 
 /*
  * NO, we do NOT support CMI yet :-) This file is mostly a placeholder and a place
@@ -1236,8 +1237,16 @@
 
 void Scumm_v8::o8_startVideo()
 {
+        char dirName[255];
 	int len = resStrLen((char*)_scriptPointer);
-	warning("o8_startVideo(%s)", (char*)_scriptPointer);
+
+        sprintf(dirName, "%s/resource/", getGameDataPath());
+        warning("o8_startVideo(%s/%s)\n", dirName, (char*)_scriptPointer);
+
+        ScummRenderer * sr = new ScummRenderer(this, 1000/14);
+        SmushPlayer * sp = new SmushPlayer(sr);
+        sp->play((char*)_scriptPointer, dirName);
+
 	_scriptPointer += len + 1;
 }
 
@@ -1411,7 +1420,6 @@
 	int i = getObjectIndex(pop());
 	push(_objs[i].height);
 }
-
 
 /*
 





More information about the Scummvm-git-logs mailing list