diff options
-rw-r--r-- | scumm/saveload.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp index 3b426358c7..409b713a3f 100644 --- a/scumm/saveload.cpp +++ b/scumm/saveload.cpp @@ -926,7 +926,13 @@ void ScummEngine::saveOrLoad(Serializer *s, uint32 savegameVersion) { // MD5 Operations: Backup on load, compare, and reset. if (s->isLoading()) if (memcmp(md5Backup, _gameMD5, 16) != 0) { + char md5str1[32+1], md5str2[32+1]; + for (j = 0; j < 16; j++) { + sprintf(md5str1 + j*2, "%02x", (int)_gameMD5[j]); + sprintf(md5str2 + j*2, "%02x", (int)md5Backup[j]); + } warning("Game was saved with different gamedata - you may encounter problems."); + debug(1, "You have %s and save is %s.", md5str2, md5str1); memcpy(_gameMD5, md5Backup, 16); } |