Skip to content

Commit

Permalink
Movie: simplify silly loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilka committed Apr 6, 2024
1 parent d307335 commit 2402697
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Source/Core/Core/Movie.cpp
Expand Up @@ -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<u8, 16>{})
return;

Core::DisplayMessage("Verifying checksum...", 2000);

std::array<u8, 16> game_md5;
Expand Down

0 comments on commit 2402697

Please sign in to comment.