diff options
author | Paweł Kołodziejski | 2002-08-24 15:31:37 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2002-08-24 15:31:37 +0000 |
commit | 9f993a1d29120120b3d9c08d56ca1990f4222ae5 (patch) | |
tree | 751e3cfdc133f1abf27d6ff35b9b6a2c329bf3a0 /scumm/script_v2.cpp | |
parent | fa181fcd8b6956821f4f8585f3124e9cf0214303 (diff) | |
download | scummvm-rg350-9f993a1d29120120b3d9c08d56ca1990f4222ae5.tar.gz scummvm-rg350-9f993a1d29120120b3d9c08d56ca1990f4222ae5.tar.bz2 scummvm-rg350-9f993a1d29120120b3d9c08d56ca1990f4222ae5.zip |
synced with scummvm
svn-id: r4821
Diffstat (limited to 'scumm/script_v2.cpp')
-rw-r--r-- | scumm/script_v2.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp index 5f85f746c2..5487e9dc1e 100644 --- a/scumm/script_v2.cpp +++ b/scumm/script_v2.cpp @@ -24,7 +24,8 @@ #include "stdafx.h" #include "scumm.h" #include "actor.h" -#include "smush.h" +#include "smush/player.h" +#include "smush/scumm_renderer.h" #include "sound/mididrv.h" #include "scumm/imuse.h" @@ -2699,7 +2700,6 @@ void Scumm::o6_miscOps() Actor *a; IMuse *se = _imuse; //yazoo: not very nice - SmushPlayer * sp; getStackList(args, sizeof(args) / sizeof(args[0])); @@ -2708,11 +2708,15 @@ void Scumm::o6_miscOps() case 4: grabCursor(args[1], args[2], args[3], args[4]); break; - case 6: - sp = new SmushPlayer(this); - sp->startVideo(args[1], getStringAddressVar(VAR_VIDEONAME)); - delete sp; - break; + case 6: { + ScummRenderer sr(this); + SmushPlayer sp(&sr); + char filename[512]; + strcpy(filename, _gameDataPath); + strcat(filename, "video/"); + strcat(filename, (char*)getStringAddressVar(VAR_VIDEONAME)); + sp.play(filename); + } case 7: warning("o6_miscOps: stub7()"); break; |