diff options
Diffstat (limited to 'engines/sci/engine/savegame.cpp')
| -rw-r--r-- | engines/sci/engine/savegame.cpp | 23 | 
1 files changed, 9 insertions, 14 deletions
| diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index ce9a672572..cdcdcc41e5 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -8,12 +8,12 @@   * modify it under the terms of the GNU General Public License   * as published by the Free Software Foundation; either version 2   * of the License, or (at your option) any later version. - + *   * This program is distributed in the hope that it will be useful,   * but WITHOUT ANY WARRANTY; without even the implied warranty of   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   * GNU General Public License for more details. - + *   * You should have received a copy of the GNU General Public License   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. @@ -860,16 +860,13 @@ void gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) {  		return;  	} -	if ((meta.version < MINIMUM_SAVEGAME_VERSION) || -	    (meta.version > CURRENT_SAVEGAME_VERSION)) { -		/* -		if (meta.version < MINIMUM_SAVEGAME_VERSION) -			warning("Old savegame version detected, unable to load it"); -		else -			warning("Savegame version is %d, maximum supported is %0d", meta.version, CURRENT_SAVEGAME_VERSION); -		*/ - -		showScummVMDialog("The format of this saved game is obsolete, unable to load it"); +	if ((meta.version < MINIMUM_SAVEGAME_VERSION) || (meta.version > CURRENT_SAVEGAME_VERSION)) { +		if (meta.version < MINIMUM_SAVEGAME_VERSION) { +			showScummVMDialog("The format of this saved game is obsolete, unable to load it"); +		} else { +			Common::String msg = Common::String::format("Savegame version is %d, maximum supported is %0d", meta.version, CURRENT_SAVEGAME_VERSION); +			showScummVMDialog(msg); +		}  		s->r_acc = TRUE_REG;	// signal failure  		return; @@ -878,8 +875,6 @@ void gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) {  	if (meta.gameObjectOffset > 0 && meta.script0Size > 0) {  		Resource *script0 = g_sci->getResMan()->findResource(ResourceId(kResourceTypeScript, 0), false);  		if (script0->size != meta.script0Size || g_sci->getGameObject().getOffset() != meta.gameObjectOffset) { -			//warning("This saved game was created with a different version of the game, unable to load it"); -  			showScummVMDialog("This saved game was created with a different version of the game, unable to load it");  			s->r_acc = TRUE_REG;	// signal failure | 
