[Scummvm-cvs-logs] scummvm master -> 5a7dbc3666b29a4bde5673fe20a85e68d02b6c56
m-kiewitz
m_kiewitz at users.sourceforge.net
Sun Apr 26 09:10:15 CEST 2015
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
5a7dbc3666 SCI: remove unused code in SciEngine::loadGameState()
Commit: 5a7dbc3666b29a4bde5673fe20a85e68d02b6c56
https://github.com/scummvm/scummvm/commit/5a7dbc3666b29a4bde5673fe20a85e68d02b6c56
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2015-04-26T09:10:25+02:00
Commit Message:
SCI: remove unused code in SciEngine::loadGameState()
Changed paths:
engines/sci/detection.cpp
diff --git a/engines/sci/detection.cpp b/engines/sci/detection.cpp
index 604aa47..9a41127 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) {
More information about the Scummvm-git-logs
mailing list