mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 07:45:33 +01:00
Movie: simplify silly loop
This commit is contained in:
parent
d3073353a7
commit
9c705f1011
@ -1519,14 +1519,11 @@ void MovieManager::CheckMD5()
|
|||||||
if (m_current_file_name.empty())
|
if (m_current_file_name.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (int i = 0, n = 0; i < 16; ++i)
|
// The MD5 hash was introduced in 3.0-846-gca650d4435.
|
||||||
{
|
// Before that, these header bytes were set to zero.
|
||||||
if (m_temp_header.md5[i] != 0)
|
if (m_temp_header.md5 == std::array<u8, 16>{})
|
||||||
continue;
|
return;
|
||||||
n++;
|
|
||||||
if (n == 16)
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Core::DisplayMessage("Verifying checksum...", 2000);
|
Core::DisplayMessage("Verifying checksum...", 2000);
|
||||||
|
|
||||||
std::array<u8, 16> game_md5;
|
std::array<u8, 16> game_md5;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user