mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-09-17 08:02:41 +00:00
Cheats: Fix parsing database when game has one code
This commit is contained in:
parent
82749d1ba3
commit
6fa245ed61
|
@ -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] == '#')
|
||||||
|
|
Loading…
Reference in a new issue