diff options
Diffstat (limited to 'engines/kyra/saveload.cpp')
-rw-r--r-- | engines/kyra/saveload.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/kyra/saveload.cpp b/engines/kyra/saveload.cpp index 9fea2f0ea1..07e770518f 100644 --- a/engines/kyra/saveload.cpp +++ b/engines/kyra/saveload.cpp @@ -251,5 +251,17 @@ void KyraEngine_v1::checkAutosave() { } } +void KyraEngine_v1::loadGameStateCheck(int slot) { + if (loadGameState(slot) != Common::kNoError) { + const char *filename = getSavegameFilename(slot); + Common::String errorMessage = "Could not load savegame: '"; + errorMessage += filename; + errorMessage += "'"; + + GUIErrorMessage(errorMessage); + error(errorMessage.c_str()); + } +} + } // end of namespace Kyra |