Patches: Don't reload GameDB when crc is 0.

Bios uses crc 0, spams useless log that bios serial is not in the gamedb.
This commit is contained in:
lightningterror 2023-06-07 19:56:37 +02:00 committed by refractionpcsx2
parent b4b5b58e35
commit 5b942f0508
1 changed files with 2 additions and 2 deletions

View File

@ -526,8 +526,8 @@ void Patch::ReloadPatches(std::string serial, u32 crc, bool force_reload_files,
s_patches_crc = crc;
s_patches_serial = std::move(serial);
// Skip reloading gamedb patches if the serial hasn't changed.
if (serial_changed)
// Skip reloading gamedb patches if the serial hasn't changed, or the crc is 0.
if (serial_changed && (s_patches_crc != 0))
{
s_gamedb_patches.clear();