Movies: Add support for MD5 hash checks for bk2 files
This commit is contained in:
parent
0c2cc8c94d
commit
1c43f2e5ae
1 changed files with 9 additions and 0 deletions
|
@ -86,6 +86,15 @@ bool BizhawkMovie::InitializeGameData(ZipReader & reader)
|
|||
result = true;
|
||||
}
|
||||
}
|
||||
} else if(line.compare(0, 3, "MD5", 3) == 0) {
|
||||
if(line.size() >= 36) {
|
||||
HashInfo hashInfo;
|
||||
hashInfo.PrgChrMd5Hash = line.substr(4, 32);
|
||||
std::transform(hashInfo.PrgChrMd5Hash.begin(), hashInfo.PrgChrMd5Hash.end(), hashInfo.PrgChrMd5Hash.begin(), ::toupper);
|
||||
if(Console::LoadROM("", hashInfo)) {
|
||||
result = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
|
Loading…
Add table
Reference in a new issue