From b3762508462d0f06dc91792995bfd43e85822145 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 29 Aug 2020 17:20:48 +0200 Subject: [PATCH] EVENTRECORDER: Do not check md5s which were skipped on save --- gui/EventRecorder.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/EventRecorder.cpp b/gui/EventRecorder.cpp index 5f29314dccd..b31fcb9711f 100644 --- a/gui/EventRecorder.cpp +++ b/gui/EventRecorder.cpp @@ -334,6 +334,9 @@ bool EventRecorder::checkGameHash(const ADGameDescription *gameDesc) { return false; } for (const ADGameFileDescription *fileDesc = gameDesc->filesDescriptions; fileDesc->fileName; fileDesc++) { + if (fileDesc->md5 == nullptr) + continue; + if (_playbackFile->getHeader().hashRecords.find(fileDesc->fileName) == _playbackFile->getHeader().hashRecords.end()) { warning("MD5 hash for file %s not found in record file", fileDesc->fileName); debugC(1, kDebugLevelEventRec, "playback:action=\"Check game hash\" filename=%s filehash=%s storedhash=\"\" result=different", fileDesc->fileName, fileDesc->md5);