[Patcher] Make hash mandatory.

This is to prevent further frustration.
"I added custom patch, removed hash and NOW MY GAME DOESN'T WORK! PLZ FIX"
This commit is contained in:
Gliniak 2023-11-09 17:54:33 +01:00
parent a34944e4d2
commit 22a27098a4
1 changed files with 1 additions and 2 deletions

View File

@ -201,8 +201,7 @@ std::vector<PatchFileEntry> PatchDB::GetTitlePatches(
bool hash_exist = std::find(entry.hashes.cbegin(), entry.hashes.cend(),
hash) != entry.hashes.cend();
return entry.title_id == title_id &&
(entry.hashes.empty() || hash_exist);
return entry.title_id == title_id && hash_exist;
});
return title_patches;