Cheats: Fix parsing database when game has one code
This commit is contained in:
@ -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] == '#')
|
||||||
|
|||||||
Reference in New Issue
Block a user