diff options
author | Eugene Sandulenko | 2004-06-23 01:36:57 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-06-23 01:36:57 +0000 |
commit | 2e0814514c346cc3c7bf091131dce91f99473810 (patch) | |
tree | 839a79bfb88adce75c1fce320636f2dbb748b83a /scumm/script_v7he.cpp | |
parent | a350fcda0d02806a0593d556745e16226543eaa0 (diff) | |
download | scummvm-rg350-2e0814514c346cc3c7bf091131dce91f99473810.tar.gz scummvm-rg350-2e0814514c346cc3c7bf091131dce91f99473810.tar.bz2 scummvm-rg350-2e0814514c346cc3c7bf091131dce91f99473810.zip |
HE 7.0 fixes
o Stub for o7_startSound
o graphics decoders
o findResource was moved to ScummEngine and extended
o 7.0+ titles use akos costumes, so fix that in launcher
o more o6_resourceRoutines stubs
Now HE 7.0 games (first 320x200 windows ports) show intros and some are
playable to some extent.
svn-id: r14003
Diffstat (limited to 'scumm/script_v7he.cpp')
-rw-r--r-- | scumm/script_v7he.cpp | 46 |
1 files changed, 45 insertions, 1 deletions
diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp index a58f4bb129..f29945759c 100644 --- a/scumm/script_v7he.cpp +++ b/scumm/script_v7he.cpp @@ -196,7 +196,7 @@ void ScummEngine_v7he::setupOpcodes() { OPCODE(o6_getOwner), OPCODE(o6_jump), /* 74 */ - OPCODE(o6_startSound), + OPCODE(o7_startSound), OPCODE(o6_stopSound), OPCODE(o6_startMusic), OPCODE(o6_stopObjectScript), @@ -644,4 +644,48 @@ void ScummEngine_v7he::o7_pickupObject() { } +void ScummEngine_v7he::o7_startSound() { + byte op; + op = fetchScriptByte(); + + switch (op) { + case 224: + // _staticVar1 = pop(); + pop(); + break; + + case 230: + // _staticVar2 = pop(); + pop(); + break; + + case 231: + // _staticVar3 = pop(); + pop(); + break; + + case 232: + pop(); + // _staticVar4 = pop(); + // _staticVar3 = 0; + // _staticVar1 = 11025; + // _staticVar2 = VAR(VAR_MUSIC_TIMER); + break; + + case 245: + // _staticVar5 |= 1; + break; + + case 255: + // _sound->addSoundToQueue(_staticVar4, _staticVar3, _staticVar2, _staticVar5); + // _staticVar5 = 0; + break; + + default: + break; + } + warning("o7_startSound stub (%d)", op); +} + + } // End of namespace Scumm |