diff options
author | James Brown | 2002-12-26 02:26:38 +0000 |
---|---|---|
committer | James Brown | 2002-12-26 02:26:38 +0000 |
commit | 3ab9233d60bc15088b67adcf4085d0922b8aa875 (patch) | |
tree | a48f3243c9e6227f3b2769e8ef8c201bd394ceeb /scumm | |
parent | 0965c929bc4981843bac9fab1a23ffa685ac4f2c (diff) | |
download | scummvm-rg350-3ab9233d60bc15088b67adcf4085d0922b8aa875.tar.gz scummvm-rg350-3ab9233d60bc15088b67adcf4085d0922b8aa875.tar.bz2 scummvm-rg350-3ab9233d60bc15088b67adcf4085d0922b8aa875.zip |
SMUSH playback opcode
svn-id: r6167
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script_v8.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp index d1f1b50a82..c1fc0749a8 100644 --- a/scumm/script_v8.cpp +++ b/scumm/script_v8.cpp @@ -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_system() 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; } @@ -1412,7 +1421,6 @@ void Scumm_v8::o8_getObjectImageHeight() push(_objs[i].height); } - /* From http://scummrev.mixnmojo.com/specs/CMIOpcodes.shtml |