diff options
author | Florian Kagerer | 2008-03-15 20:24:26 +0000 |
---|---|---|
committer | Florian Kagerer | 2008-03-15 20:24:26 +0000 |
commit | fd7ed046bb89f91c767b762dd1ea336b798a3bbf (patch) | |
tree | e835e3f0fd28ce533da27dea2ec606a9e55091c5 /engines/kyra/sequences_tim.cpp | |
parent | f88a2923cd45fa5ad597599c1fb68a9b6ecc6432 (diff) | |
download | scummvm-rg350-fd7ed046bb89f91c767b762dd1ea336b798a3bbf.tar.gz scummvm-rg350-fd7ed046bb89f91c767b762dd1ea336b798a3bbf.tar.bz2 scummvm-rg350-fd7ed046bb89f91c767b762dd1ea336b798a3bbf.zip |
- some more opcodes for wsa and tim sequences
- adding some code to inputSceneChange
svn-id: r31132
Diffstat (limited to 'engines/kyra/sequences_tim.cpp')
-rw-r--r-- | engines/kyra/sequences_tim.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/kyra/sequences_tim.cpp b/engines/kyra/sequences_tim.cpp index a072f2f64d..f7f62dd42a 100644 --- a/engines/kyra/sequences_tim.cpp +++ b/engines/kyra/sequences_tim.cpp @@ -176,6 +176,26 @@ void KyraEngine_v2::tim_processSequence(uint8 *timBuffer, int loop) { } +void KyraEngine_v2::tim_playFullSequence(const char *filename) { + uint8 *ptr = tim_loadFile(filename, 0, 0); + if (!ptr) + return; + + _objectChatFinished = 0; + + while (ptr && !_objectChatFinished) { + if (ptr) + tim_processSequence(ptr, 0); + if (_timChatText) + updateWithText(); + else + update(); + } + + if (ptr) + tim_releaseBuffer(ptr); +} + int KyraEngine_v2::tim_o_dummy_r0(uint8 *ptr) { return 0; } |