From e645627b7896c37bfa7ec98364e518ddd6a78f5d Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sat, 15 Feb 2020 10:29:51 +0100 Subject: [PATCH] Qt: Allow for duplications in game list This fixes app versions when multiple game data directories were found. We only removed duplications because we didn't wanna see multiple disc games from different locations --- rpcs3/rpcs3qt/game_list_frame.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/rpcs3/rpcs3qt/game_list_frame.cpp b/rpcs3/rpcs3qt/game_list_frame.cpp index 02c4c38f64..7816321317 100644 --- a/rpcs3/rpcs3qt/game_list_frame.cpp +++ b/rpcs3/rpcs3qt/game_list_frame.cpp @@ -533,9 +533,6 @@ void game_list_frame::Refresh(const bool fromDrive, const bool scrollAfter) } } - // Used to remove duplications from the list (serial -> set of cat names) - std::map> serial_cat_name; - QSet serials; QMutex mutex_cat; @@ -580,13 +577,6 @@ void game_list_frame::Refresh(const bool fromDrive, const bool scrollAfter) mutex_cat.lock(); - // Detect duplication - if (!serial_cat_name[game.serial].emplace(game.category + game.name).second) - { - mutex_cat.unlock(); - return; - } - const QString serial = qstr(game.serial); const QString note = m_gui_settings->GetValue(gui::notes, serial, "").toString(); const QString title = m_gui_settings->GetValue(gui::titles, serial, "").toString().simplified(); @@ -711,13 +701,6 @@ void game_list_frame::Refresh(const bool fromDrive, const bool scrollAfter) { game_list_log.error("Failed to update the displayed version numbers for title ID %s\n%s thrown: %s", entry->info.serial, typeid(e).name(), e.what()); } - - const std::string key = "GD" + other->info.name; - serial_cat_name[other->info.serial].erase(key); - if (!serial_cat_name[other->info.serial].count(key)) - { - break; - } } } }