SCI: adding more debug output to kPalVary, fixing loading savedgames (_gfxPaint wasnt copied over)

svn-id: r47943
This commit is contained in:
Martin Kiewitz 2010-02-06 21:38:58 +00:00
parent 6d69960704
commit 67870c7dc8
2 changed files with 6 additions and 1 deletions

View file

@ -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) {

View file

@ -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;