[Scummvm-git-logs] scummvm master -> 8d06459f392fc276b5424f0e6e9b62a8a1af0735

dreammaster noreply at scummvm.org
Wed Oct 22 05:42:13 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
8d06459f39 BAGEL: Don't bother validating savegame m_nFixedRecordSize


Commit: 8d06459f392fc276b5424f0e6e9b62a8a1af0735
    https://github.com/scummvm/scummvm/commit/8d06459f392fc276b5424f0e6e9b62a8a1af0735
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2025-10-21T22:42:02-07:00

Commit Message:
BAGEL: Don't bother validating savegame m_nFixedRecordSize

Changed paths:
    engines/bagel/hodjnpodj/metagame/saves/savegame.cpp


diff --git a/engines/bagel/hodjnpodj/metagame/saves/savegame.cpp b/engines/bagel/hodjnpodj/metagame/saves/savegame.cpp
index 137d742f4b0..dbeb5b59030 100644
--- a/engines/bagel/hodjnpodj/metagame/saves/savegame.cpp
+++ b/engines/bagel/hodjnpodj/metagame/saves/savegame.cpp
@@ -309,23 +309,13 @@ bool ValidateSGInfo(SAVEGAME_INFO *pSaveGameInfo) {
 		return false;
 	}
 
-	if (pSaveGameInfo->m_nFixedRecordSize != sizeof(SAVEGAME_INFO))
-		return false;
-
-	/*if (pSaveGameInfo->m_stPlayerInfo[0].m_lCrowns < 0)
-		return(false);
-
-	if (pSaveGameInfo->m_stPlayerInfo[1].m_lCrowns < 0)
-		return(false);*/
-
 	switch (pSaveGameInfo->m_iGameTime) {
-
 	case SHORT_GAME:
 	case MEDIUM_GAME:
 	case LONG_GAME:
 		break;
 
-		// not a valid game type
+	// not a valid game type
 	default:
 		return false;
 	}




More information about the Scummvm-git-logs mailing list