diff options
author | Johannes Schickel | 2008-11-09 13:00:40 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-11-09 13:00:40 +0000 |
commit | 36de1204e343743b4c86d8b30113640b3e697c7c (patch) | |
tree | a72435f476a27abd0982c4796f1d04679091b51f /engines/kyra/gui_lok.cpp | |
parent | cb581c61b26269296e3e9f4837ae793e562a84db (diff) | |
download | scummvm-rg350-36de1204e343743b4c86d8b30113640b3e697c7c.tar.gz scummvm-rg350-36de1204e343743b4c86d8b30113640b3e697c7c.tar.bz2 scummvm-rg350-36de1204e343743b4c86d8b30113640b3e697c7c.zip |
- Implemented Engine::saveGameState for KYRA
- Changed internal save/load API to use slots instead of filename strings
- Changed internal save/load API to use Common::Error
svn-id: r34952
Diffstat (limited to 'engines/kyra/gui_lok.cpp')
-rw-r--r-- | engines/kyra/gui_lok.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/gui_lok.cpp b/engines/kyra/gui_lok.cpp index e097a422f2..64d0c91d24 100644 --- a/engines/kyra/gui_lok.cpp +++ b/engines/kyra/gui_lok.cpp @@ -658,7 +658,7 @@ int GUI_LoK::loadGameMenu(Button *button) { } else { restorePalette(); if (_vm->_gameToLoad != -1) - _vm->loadGame(_vm->getSavegameFilename(_vm->_gameToLoad)); + _vm->loadGameState(_vm->_gameToLoad); _displayMenu = false; _menuRestoreScreen = false; } @@ -749,7 +749,7 @@ int GUI_LoK::saveGame(Button *button) { if (_vm->_gameToLoad > 0) { Graphics::Surface thumb; createScreenThumbnail(thumb); - _vm->saveGame(_vm->getSavegameFilename(_vm->_gameToLoad), _savegameName, &thumb); + _vm->saveGameState(_vm->_gameToLoad, _savegameName, &thumb); thumb.free(); } } |