bool Cheater_Geisha::cheat(GUI::Debugger &console) { // A cheat to get around the Diving minigame if (_diving->isPlaying()) { _diving->cheatWin(); return false; } // A cheat to get around the Penetration minigame if (_penetration->isPlaying()) { _penetration->cheatWin(); return false; } // A cheat to get around the mastermind puzzle if (_vm->isCurrentTot("hard.tot") && _vm->_inter->_variables) { uint32 digit1 = READ_VARO_UINT32(0x768); uint32 digit2 = READ_VARO_UINT32(0x76C); uint32 digit3 = READ_VARO_UINT32(0x770); uint32 digit4 = READ_VARO_UINT32(0x774); uint32 digit5 = READ_VARO_UINT32(0x778); if (digit1 && digit2 && digit3 && digit4 && digit5) console.DebugPrintf("Mastermind solution: %d %d %d %d %d\n", digit1, digit2, digit3, digit4, digit5); return true; } return true; }