diff options
author | Sven Hesse | 2011-08-26 11:50:00 +0200 |
---|---|---|
committer | Sven Hesse | 2011-08-26 11:50:37 +0200 |
commit | 5dd26b9a369690ef24bb8613c27c339c931d8de0 (patch) | |
tree | 5505d54e4f00fcec717a39295353d2fc3cc3f085 | |
parent | 5bcb89852fadb3f5716a52b467a229dda5fed347 (diff) | |
download | scummvm-rg350-5dd26b9a369690ef24bb8613c27c339c931d8de0.tar.gz scummvm-rg350-5dd26b9a369690ef24bb8613c27c339c931d8de0.tar.bz2 scummvm-rg350-5dd26b9a369690ef24bb8613c27c339c931d8de0.zip |
GOB: Add cheat output for Geisha's mastermind
-rw-r--r-- | engines/gob/inter_v1.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/gob/inter_v1.cpp b/engines/gob/inter_v1.cpp index 8d675d1500..0eb8be1a03 100644 --- a/engines/gob/inter_v1.cpp +++ b/engines/gob/inter_v1.cpp @@ -658,6 +658,20 @@ void Inter_v1::o1_callSub(OpFuncParams ¶ms) { return; } + // A cheat to get around the stupid mastermind puzzle in Geisha, + // while we're still testing it + if ((_vm->getGameType() == kGameTypeGeisha) && (offset == 12934) && + _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); + + warning("Mastermind solution: %d %d %d %d %d", digit1, digit2, digit3, digit4, digit5); + } + // Skipping the copy protection screen in Gobliiins if (!_vm->_copyProtection && (_vm->getGameType() == kGameTypeGob1) && (offset == 3905) && _vm->isCurrentTot(_vm->_startTot)) { |