Implemented opcodes:

- 164: o2_getSfxDriver
 - 165: o2_getVocSupport
 - 166: o2_getMusicDriver

svn-id: r31275
This commit is contained in:
Johannes Schickel 2008-03-27 23:12:45 +00:00
parent 42ff616533
commit 7a683ae436
2 changed files with 22 additions and 3 deletions

View File

@ -1087,6 +1087,9 @@ protected:
int o2_getRainbowRoomData(ScriptState *script);
int o2_drawSceneShapeEx(ScriptState *script);
int o2_getBoolFromStack(ScriptState *script);
int o2_getSfxDriver(ScriptState *script);
int o2_getVocSupport(ScriptState *script);
int o2_getMusicDriver(ScriptState *script);
int o2_setVocHigh(ScriptState *script);
int o2_getVocHigh(ScriptState *script);
int o2_zanthiaChat(ScriptState *script);

View File

@ -1599,6 +1599,22 @@ int KyraEngine_v2::o2_getBoolFromStack(ScriptState *script) {
return stackPos(0) ? 1 : 0;
}
int KyraEngine_v2::o2_getSfxDriver(ScriptState *script) {
debugC(3, kDebugLevelScriptFuncs, "KyraEngine_v2::o2_getSfxDriver(%p) ()", (const void *)script);
return 1; // HACK: this is AdLib driver, maybe we should return 6 for MT-32 or 7 for General MIDI too when we're using that
}
int KyraEngine_v2::o2_getVocSupport(ScriptState *script) {
debugC(3, kDebugLevelScriptFuncs, "KyraEngine_v2::o2_getVocSupport(%p) ()", (const void *)script);
// we always support VOC file playback
return 1;
}
int KyraEngine_v2::o2_getMusicDriver(ScriptState *script) {
debugC(3, kDebugLevelScriptFuncs, "KyraEngine_v2::o2_getMusicDriver(%p) ()", (const void *)script);
return 1; // HACK: this is AdLib driver, maybe we should return 6 for MT-32 or 7 for General MIDI too when we're using that
}
int KyraEngine_v2::o2_setVocHigh(ScriptState *script) {
debugC(3, kDebugLevelScriptFuncs, "KyraEngine_v2::o2_setVocHigh(%p) (%d)", (const void *)script, stackPos(0));
_vocHigh = stackPos(0);
@ -1899,9 +1915,9 @@ void KyraEngine_v2::setupOpcodeTable() {
Opcode(o2_drawSceneShapeEx),
Opcode(o2_getBoolFromStack),
// 0xa4
OpcodeUnImpl(),
OpcodeUnImpl(),
OpcodeUnImpl(),
Opcode(o2_getSfxDriver),
Opcode(o2_getVocSupport),
Opcode(o2_getMusicDriver),
Opcode(o2_setVocHigh),
// 0xa8
Opcode(o2_getVocHigh),