mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-22 17:55:41 -04: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…
x
Reference in New Issue
Block a user