diff options
author | Eugene Sandulenko | 2019-08-15 23:06:07 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:33 +0200 |
commit | eaa972347f42d4e6a5e0e47974ab7d360cdfe44b (patch) | |
tree | 53f6c3f665c9b1e981d4ca0b930bf899ee67135b /engines/hdb/saveload.cpp | |
parent | f14edf90d4f7ecc2b869274aeaad3aeed06ad524 (diff) | |
download | scummvm-rg350-eaa972347f42d4e6a5e0e47974ab7d360cdfe44b.tar.gz scummvm-rg350-eaa972347f42d4e6a5e0e47974ab7d360cdfe44b.tar.bz2 scummvm-rg350-eaa972347f42d4e6a5e0e47974ab7d360cdfe44b.zip |
HDB: Increase number of slots to 99 and support saveload from the GMM
Diffstat (limited to 'engines/hdb/saveload.cpp')
-rw-r--r-- | engines/hdb/saveload.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/hdb/saveload.cpp b/engines/hdb/saveload.cpp index d53404b075..618d9a9be4 100644 --- a/engines/hdb/saveload.cpp +++ b/engines/hdb/saveload.cpp @@ -32,6 +32,10 @@ namespace HDB { +bool HDBGame::canSaveGameStateCurrently() { + return (_gameState == GAME_PLAY && !_ai->cinematicsActive()); +} + Common::Error HDBGame::saveGameState(int slot, const Common::String &desc) { // If no map is loaded, don't try to save @@ -79,6 +83,10 @@ Common::Error HDBGame::saveGameState(int slot, const Common::String &desc) { return Common::kNoError; } +bool HDBGame::canLoadGameStateCurrently() { + return _gameState == GAME_PLAY; +} + Common::Error HDBGame::loadGameState(int slot) { Common::InSaveFile *in; |