Skip to content

Commit

Permalink
SCI: Add notes
Browse files Browse the repository at this point in the history
  • Loading branch information
wjp committed Oct 19, 2014
1 parent d3475fe commit 1860c21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/sci/engine/kfile.cpp
Expand Up @@ -922,6 +922,8 @@ reg_t kRestoreGame(EngineState *s, int argc, reg_t *argv) {
// path is never followed in these two cases (restoring game from the menu, or restoring a game
// from the ScummVM launcher). Thus, we perform the calls to enable the menus ourselves here.
// These two are needed when restoring from the launcher
// FIXME: The original interpreter saves and restores the menu state, so these attributes
// are automatically reset there. We may want to do the same.
g_sci->_gfxMenu->kernelSetAttribute(257 >> 8, 257 & 0xFF, SCI_MENU_ATTRIBUTE_ENABLED, TRUE_REG); // Sierra -> About Jones
g_sci->_gfxMenu->kernelSetAttribute(258 >> 8, 258 & 0xFF, SCI_MENU_ATTRIBUTE_ENABLED, TRUE_REG); // Sierra -> Help
// The rest are normally enabled from room1::init
Expand Down
2 changes: 2 additions & 0 deletions engines/sci/engine/savegame.cpp
Expand Up @@ -844,6 +844,8 @@ bool gamestate_save(EngineState *s, Common::WriteStream *fh, const Common::Strin
if (voc)
voc->saveLoadWithSerializer(ser);

// TODO: SSCI (at least JonesCD, presumably more) also stores the Menu state

return true;
}

Expand Down

0 comments on commit 1860c21

Please sign in to comment.