From 24026970394c4c077c510baefa677b3d9205afb9 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sat, 6 Apr 2024 13:59:28 +0100 Subject: [PATCH] Movie: simplify silly loop --- Source/Core/Core/Movie.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Source/Core/Core/Movie.cpp b/Source/Core/Core/Movie.cpp index e759358e04b5..606f18a954bc 100644 --- a/Source/Core/Core/Movie.cpp +++ b/Source/Core/Core/Movie.cpp @@ -1519,14 +1519,9 @@ void MovieManager::CheckMD5() if (m_current_file_name.empty()) return; - for (int i = 0, n = 0; i < 16; ++i) - { - if (m_temp_header.md5[i] != 0) - continue; - n++; - if (n == 16) - return; - } + if (m_temp_header.md5 == std::array{}) + return; + Core::DisplayMessage("Verifying checksum...", 2000); std::array game_md5;