mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-22 09:49:11 +00:00
Add opcode
svn-id: r15115
This commit is contained in:
parent
c97d529787
commit
8c5381295d
@ -796,6 +796,7 @@ protected:
|
||||
/* HE version 80 script opcodes */
|
||||
void o80_unknown45();
|
||||
void o80_unknown49();
|
||||
void o80_unknown4A();
|
||||
void o80_readConfigFile();
|
||||
void o80_writeConfigFile();
|
||||
void o80_cursorCommand();
|
||||
|
@ -1156,11 +1156,10 @@ void ScummEngine_v6he::o6_soundOps() {
|
||||
void ScummEngine_v6he::o6_localizeArray() {
|
||||
int slot = pop();
|
||||
|
||||
if (slot < _numArray) {
|
||||
_arraySlot[slot] = vm.slot[_currentScript].number;
|
||||
} else {
|
||||
warning("o6_localizeArray(%d): array slot out of range", slot);
|
||||
}
|
||||
if (slot >= _numArray)
|
||||
error("o6_localizeArray(%d): array slot out of range", slot);
|
||||
|
||||
_arraySlot[slot] = vm.slot[_currentScript].number;
|
||||
}
|
||||
|
||||
void ScummEngine_v6he::o6_seekFilePos() {
|
||||
|
@ -137,7 +137,7 @@ void ScummEngine_v80he::setupOpcodes() {
|
||||
/* 48 */
|
||||
OPCODE(o6_invalid),
|
||||
OPCODE(o80_unknown49),
|
||||
OPCODE(o6_invalid),
|
||||
OPCODE(o80_unknown4A),
|
||||
OPCODE(o72_wordArrayIndexedWrite),
|
||||
/* 4C */
|
||||
OPCODE(o6_invalid),
|
||||
@ -422,6 +422,15 @@ void ScummEngine_v80he::o80_unknown49() {
|
||||
debug(1,"o80_unknown49 stub (%d, %d)", subOp, snd);
|
||||
}
|
||||
|
||||
void ScummEngine_v80he::o80_unknown4A() {
|
||||
int slot = pop();
|
||||
|
||||
if (slot >= _numArray)
|
||||
error("o80_unknown4A(%d): array slot out of range", slot);
|
||||
|
||||
_arraySlot[slot] = -1;
|
||||
}
|
||||
|
||||
void ScummEngine_v80he::o80_readConfigFile() {
|
||||
byte name[128], section[128], filename[256];
|
||||
int type, retval;
|
||||
|
@ -137,7 +137,7 @@ void ScummEngine_v90he::setupOpcodes() {
|
||||
/* 48 */
|
||||
OPCODE(o6_invalid),
|
||||
OPCODE(o80_unknown49),
|
||||
OPCODE(o6_invalid),
|
||||
OPCODE(o80_unknown4A),
|
||||
OPCODE(o72_wordArrayIndexedWrite),
|
||||
/* 4C */
|
||||
OPCODE(o6_invalid),
|
||||
|
Loading…
Reference in New Issue
Block a user