diff options
author | Martin Kiewitz | 2015-04-26 09:10:25 +0200 |
---|---|---|
committer | Martin Kiewitz | 2015-04-26 09:10:25 +0200 |
commit | 5a7dbc3666b29a4bde5673fe20a85e68d02b6c56 (patch) | |
tree | 7f616724c9dc1eae5139e08d3941e969b20bd8b8 | |
parent | bfba28c33591afe8ce2f7f42de49935029bb4d62 (diff) | |
download | scummvm-rg350-5a7dbc3666b29a4bde5673fe20a85e68d02b6c56.tar.gz scummvm-rg350-5a7dbc3666b29a4bde5673fe20a85e68d02b6c56.tar.bz2 scummvm-rg350-5a7dbc3666b29a4bde5673fe20a85e68d02b6c56.zip |
SCI: remove unused code in SciEngine::loadGameState()
-rw-r--r-- | engines/sci/detection.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/engines/sci/detection.cpp b/engines/sci/detection.cpp index 604aa476a2..9a41127f6d 100644 --- a/engines/sci/detection.cpp +++ b/engines/sci/detection.cpp @@ -794,23 +794,6 @@ Common::Error SciEngine::loadGameState(int slot) { _gamestate->_delayedRestoreGameId = slot; _gamestate->_delayedRestoreGame = true; return Common::kNoError; - - Common::String fileName = Common::String::format("%s.%03d", _targetName.c_str(), slot); - Common::SaveFileManager *saveFileMan = g_engine->getSaveFileManager(); - Common::SeekableReadStream *in = saveFileMan->openForLoading(fileName); - - if (in) { - // found a savegame file - gamestate_restore(_gamestate, in); - delete in; - } - - if (_gamestate->r_acc != make_reg(0, 1)) { - return Common::kNoError; - } else { - warning("Restoring gamestate '%s' failed", fileName.c_str()); - return Common::kUnknownError; - } } Common::Error SciEngine::saveGameState(int slot, const Common::String &desc) { |