diff options
author | Martin Kiewitz | 2010-02-06 21:38:58 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-02-06 21:38:58 +0000 |
commit | 67870c7dc887b4e32067be0c6eb41ef6fe7db7ec (patch) | |
tree | 6a5e40c918169a91f7f5374a1018cd95c6793505 /engines/sci | |
parent | 6d6996070411414d44eb04d29e451fcd3fd58880 (diff) | |
download | scummvm-rg350-67870c7dc887b4e32067be0c6eb41ef6fe7db7ec.tar.gz scummvm-rg350-67870c7dc887b4e32067be0c6eb41ef6fe7db7ec.tar.bz2 scummvm-rg350-67870c7dc887b4e32067be0c6eb41ef6fe7db7ec.zip |
SCI: adding more debug output to kPalVary, fixing loading savedgames (_gfxPaint wasnt copied over)
svn-id: r47943
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 6 | ||||
-rw-r--r-- | engines/sci/engine/savegame.cpp | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 78f5251171..d3d16824e6 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -654,7 +654,7 @@ reg_t kPalVary(EngineState *s, int argc, reg_t *argv) { break; } case 1: { // Unknown - warning("kPalVary(1) called with parameter %d", argv[1].toUint16()); + warning("kPalVary(1) called with parameter %d (argc %d)", argv[1].toUint16(), argc); break; } case 3: { // DeInit @@ -666,6 +666,10 @@ reg_t kPalVary(EngineState *s, int argc, reg_t *argv) { } break; } + case 4: { // Unknown + warning("kPalVary(4) called with parameter %d (argc %d)", argv[1].toUint16(), argc); + break; + } case 6: { // Pause bool pauseState; if (argc == 2) { diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index 445bab573c..af3637f43e 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -950,6 +950,7 @@ void gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) { retval->_gfxCoordAdjuster = s->_gfxCoordAdjuster; retval->_gfxCursor = s->_gfxCursor; retval->_gfxMenu = s->_gfxMenu; + retval->_gfxPaint = s->_gfxPaint; retval->_gfxPaint16 = s->_gfxPaint16; retval->_gfxPalette = s->_gfxPalette; retval->_gfxPorts = s->_gfxPorts; |