[Scummvm-git-logs] scummvm master -> 70d6df35d8b90797476e2f4934659ec40d07ca9e

OMGPizzaGuy noreply at scummvm.org
Sun Jan 15 21:10:53 UTC 2023


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:
70d6df35d8 ULTIMA8: Remove check to change save slot for invalid save files.


Commit: 70d6df35d8b90797476e2f4934659ec40d07ca9e
    https://github.com/scummvm/scummvm/commit/70d6df35d8b90797476e2f4934659ec40d07ca9e
Author: Matthew Jimenez (matthew.jimenez at outlook.com)
Date: 2023-01-15T15:09:59-06:00

Commit Message:
ULTIMA8: Remove check to change save slot for invalid save files.
This masked errors that should occur on loading missing or invalid save files.

Changed paths:
    engines/ultima/ultima8/ultima8.cpp


diff --git a/engines/ultima/ultima8/ultima8.cpp b/engines/ultima/ultima8/ultima8.cpp
index 656b0238f22..949d527c6ab 100644
--- a/engines/ultima/ultima8/ultima8.cpp
+++ b/engines/ultima/ultima8/ultima8.cpp
@@ -1128,13 +1128,6 @@ void Ultima8Engine::setupCoreGumps() {
 bool Ultima8Engine::newGame(int saveSlot) {
 	debugN(MM_INFO, "Starting New Game (slot %d)... \n", saveSlot);
 
-	// First validate we still have a save file for the slot
-	if (saveSlot != -1) {
-		SaveStateDescriptor desc = getMetaEngine()->querySaveMetaInfos(_targetName.c_str(), saveSlot);
-		if (desc.getSaveSlot() != saveSlot)
-			saveSlot = -1;
-	}
-
 	resetEngine();
 
 	setupCoreGumps();




More information about the Scummvm-git-logs mailing list