From a922a0b1f5627ad375deeaa2bc55cc44fa0eb94d Mon Sep 17 00:00:00 2001 From: Jonathan Li Date: Sun, 26 Aug 2018 11:39:28 +0100 Subject: [PATCH] pcsx2: Don't store the GameDB serial in the key list It's already available in the id field, so storing it again is a waste of space and CPU cycles. --- pcsx2/gui/AppGameDatabase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcsx2/gui/AppGameDatabase.cpp b/pcsx2/gui/AppGameDatabase.cpp index cfe8c240fa..a8d858ef49 100644 --- a/pcsx2/gui/AppGameDatabase.cpp +++ b/pcsx2/gui/AppGameDatabase.cpp @@ -110,8 +110,10 @@ void DBLoaderHelper::ReadGames() if (!extractMultiLine()) extract(); if (!m_keyPair.IsOk()) continue; - if (m_keyPair.CompareKey(m_gamedb.getBaseKey())) + if (m_keyPair.CompareKey(m_gamedb.getBaseKey())) { game = m_gamedb.createNewGame(m_keyPair.value); + continue; + } game->writeString( m_keyPair.key, m_keyPair.value ); }