- implemented opcode 90: o3_getScore

- opcode 103 is yet another dummy opcode

svn-id: r31710
This commit is contained in:
Johannes Schickel 2008-04-24 21:48:04 +00:00
parent a546869dac
commit c05d16826d
2 changed files with 8 additions and 2 deletions

View file

@ -711,6 +711,7 @@ private:
int o3_stopMusic(ScriptState *script); int o3_stopMusic(ScriptState *script);
int o3_playMusicTrack(ScriptState *script); int o3_playMusicTrack(ScriptState *script);
int o3_playSoundEffect(ScriptState *script); int o3_playSoundEffect(ScriptState *script);
int o3_getScore(ScriptState *script);
int o3_blockOutRegion(ScriptState *script); int o3_blockOutRegion(ScriptState *script);
int o3_getRand(ScriptState *script); int o3_getRand(ScriptState *script);
int o3_waitForConfirmationClick(ScriptState *script); int o3_waitForConfirmationClick(ScriptState *script);

View file

@ -655,6 +655,11 @@ int KyraEngine_v3::o3_playSoundEffect(ScriptState *script) {
return 0; return 0;
} }
int KyraEngine_v3::o3_getScore(ScriptState *script) {
debugC(3, kDebugLevelScriptFuncs, "KyraEngine_v3::o3_getScore(%p) ()", (const void *)script);
return _score;
}
int KyraEngine_v3::o3_blockOutRegion(ScriptState *script) { int KyraEngine_v3::o3_blockOutRegion(ScriptState *script) {
debugC(3, kDebugLevelScriptFuncs, "KyraEngine_v3::o3_blockOutRegion(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3)); debugC(3, kDebugLevelScriptFuncs, "KyraEngine_v3::o3_blockOutRegion(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
const int x1 = stackPos(0); const int x1 = stackPos(0);
@ -1166,7 +1171,7 @@ void KyraEngine_v3::setupOpcodeTable() {
// 0x58 // 0x58
Opcode(o3_playMusicTrack); Opcode(o3_playMusicTrack);
Opcode(o3_playSoundEffect); Opcode(o3_playSoundEffect);
OpcodeUnImpl(); Opcode(o3_getScore);
OpcodeUnImpl(); OpcodeUnImpl();
// 0x5c // 0x5c
Opcode(o3_blockOutRegion); Opcode(o3_blockOutRegion);
@ -1182,7 +1187,7 @@ void KyraEngine_v3::setupOpcodeTable() {
OpcodeUnImpl(); OpcodeUnImpl();
OpcodeUnImpl(); OpcodeUnImpl();
Opcode(o3_dummy); Opcode(o3_dummy);
OpcodeUnImpl(); Opcode(o3_dummy);
// 0x68 // 0x68
Opcode(o3_dummy); Opcode(o3_dummy);
Opcode(o3_dummy); Opcode(o3_dummy);