From 49468fdffff855f3cc5c77044776531381f3fe8f Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 18 Nov 2010 19:20:30 +0000 Subject: SCI3: Added another previously unused opcode (0x27 / 0x4e) svn-id: r54341 --- engines/sci/engine/kernel.cpp | 1 + engines/sci/engine/vm.cpp | 2 ++ 2 files changed, 3 insertions(+) (limited to 'engines/sci/engine') diff --git a/engines/sci/engine/kernel.cpp b/engines/sci/engine/kernel.cpp index 5b7a24f289..16534fbce9 100644 --- a/engines/sci/engine/kernel.cpp +++ b/engines/sci/engine/kernel.cpp @@ -916,6 +916,7 @@ void script_adjust_opcode_formats() { // TODO: There are also opcodes in // here to get the superclass, and possibly the species too. g_opcode_formats[0x4d/2][0] = Script_None; + g_opcode_formats[0x4e/2][0] = Script_None; } #endif } diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp index 9fa579cead..20889bbee8 100644 --- a/engines/sci/engine/vm.cpp +++ b/engines/sci/engine/vm.cpp @@ -1564,6 +1564,8 @@ void run_vm(EngineState *s) { if (getSciVersion() == SCI_VERSION_3) { if (extOpcode == 0x4d) PUSH32(obj->getInfoSelector()); + else if (extOpcode == 0x4e) + PUSH32(obj->getNameSelector()); // TODO: is this correct? // TODO: There are also opcodes in // here to get the superclass, and possibly the species too. else -- cgit v1.2.3