[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:
parent
a34944e4d2
commit
22a27098a4
|
@ -201,8 +201,7 @@ std::vector<PatchFileEntry> PatchDB::GetTitlePatches(
|
||||||
bool hash_exist = std::find(entry.hashes.cbegin(), entry.hashes.cend(),
|
bool hash_exist = std::find(entry.hashes.cbegin(), entry.hashes.cend(),
|
||||||
hash) != entry.hashes.cend();
|
hash) != entry.hashes.cend();
|
||||||
|
|
||||||
return entry.title_id == title_id &&
|
return entry.title_id == title_id && hash_exist;
|
||||||
(entry.hashes.empty() || hash_exist);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return title_patches;
|
return title_patches;
|
||||||
|
|
Loading…
Reference in New Issue