GameDB: Fix loading patches for some games

This commit is contained in:
refractionpcsx2 2021-12-26 08:43:06 +00:00
parent dc65599fae
commit 31992fb398
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ void parseAndInsert(const std::string_view& serial, const c4::yml::NodeRef& node
{ {
for (const ryml::NodeRef& n : node["patches"].children()) for (const ryml::NodeRef& n : node["patches"].children())
{ {
auto crc = std::string(n.key().str, n.key().len); auto crc = StringUtil::toLower(std::string(n.key().str, n.key().len));
if (gameEntry.patches.count(crc) == 1) if (gameEntry.patches.count(crc) == 1)
{ {
Console.Error(fmt::format("[GameDB] Duplicate CRC '{}' found for serial: '{}'. Skipping, CRCs are case-insensitive!", crc, serial)); Console.Error(fmt::format("[GameDB] Duplicate CRC '{}' found for serial: '{}'. Skipping, CRCs are case-insensitive!", crc, serial));