mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
pickVarRandom stub
svn-id: r6618
This commit is contained in:
parent
516f970e64
commit
c86cc94deb
@ -370,6 +370,7 @@ protected:
|
||||
void o6_closeFile();
|
||||
void o6_deleteFile();
|
||||
void o6_findAllObjects();
|
||||
void o6_pickVarRandom();
|
||||
};
|
||||
|
||||
class Scumm_v7 : public Scumm_v6
|
||||
|
@ -326,7 +326,7 @@ void Scumm_v6::setupOpcodes()
|
||||
OPCODE(o6_invalid),
|
||||
OPCODE(o6_invalid),
|
||||
OPCODE(o6_invalid),
|
||||
OPCODE(o6_invalid),
|
||||
OPCODE(o6_pickVarRandom),
|
||||
/* E4 */
|
||||
OPCODE(o6_invalid),
|
||||
OPCODE(o6_invalid),
|
||||
@ -2949,6 +2949,21 @@ void Scumm_v6::o6_findAllObjects() {
|
||||
push(readVar(0));
|
||||
}
|
||||
|
||||
void Scumm_v6::o6_pickVarRandom() {
|
||||
int args[16];
|
||||
int a, b;
|
||||
|
||||
warning("stub: o6_pickVarRandom()");
|
||||
getStackList(args, sizeof(args) / sizeof(args[0]));
|
||||
a = fetchScriptWord();
|
||||
b = readVar(a);
|
||||
// readArray(a, 0, 0);
|
||||
// push(readVar(a));
|
||||
|
||||
// readArray(a, 0, ?);
|
||||
push(2);
|
||||
}
|
||||
|
||||
void Scumm_v6::decodeParseString(int m, int n)
|
||||
{
|
||||
byte b;
|
||||
|
Loading…
Reference in New Issue
Block a user