Cheats: Fix parsing database when game has one code

This commit is contained in:
Connor McLaughlin 2021-03-13 03:04:32 +10:00
parent 82749d1ba3
commit 6fa245ed61

View file

@ -771,7 +771,8 @@ bool CheatList::LoadFromPackage(const std::string& game_code)
if (start == end) if (start == end)
continue; continue;
if (start[0] == ':' && !m_codes.empty()) // stop adding codes when we hit a different game
if (start[0] == ':' && (!m_codes.empty() || current_code.Valid()))
break; break;
if (start[0] == '#') if (start[0] == '#')