From 6fa245ed613024db9136255a67fbe463075ffae1 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 13 Mar 2021 03:04:32 +1000 Subject: [PATCH] Cheats: Fix parsing database when game has one code --- src/core/cheats.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/cheats.cpp b/src/core/cheats.cpp index 5a0dec6f4..7b07d2f48 100644 --- a/src/core/cheats.cpp +++ b/src/core/cheats.cpp @@ -771,7 +771,8 @@ bool CheatList::LoadFromPackage(const std::string& game_code) if (start == end) 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; if (start[0] == '#')