MOHAWK: Myst: Switch to bounds checked opcode arguments

This commit is contained in:
Bastien Bouclet 2017-04-08 07:38:49 +02:00
parent 75040819c6
commit 3e99dd8ccc
25 changed files with 550 additions and 566 deletions

View file

@ -68,15 +68,15 @@ void Slides::runPersistentScripts() {
}
}
void Slides::o_returnToMenu(uint16 op, uint16 var, uint16 argc, uint16 *argv) {
void Slides::o_returnToMenu(uint16 op, uint16 var, const ArgumentsArray &args) {
debugC(kDebugScript, "Opcode %d: Return to menu", op);
// Go to the information screens of the menu
_vm->changeToStack(kDemoStack, 2002, 0, 0);
}
void Slides::o_setCardSwap(uint16 op, uint16 var, uint16 argc, uint16 *argv) {
_nextCardID = argv[0];
void Slides::o_setCardSwap(uint16 op, uint16 var, const ArgumentsArray &args) {
_nextCardID = args[0];
debugC(kDebugScript, "Opcode %d: Set next card %d", op, _nextCardID);