From acf9caa4ae5741538773413b72eb2ba288d50abd Mon Sep 17 00:00:00 2001 From: Elad Ashkenazi Date: Sat, 4 Feb 2023 08:41:30 +0200 Subject: [PATCH] Game list: Use the latest game icon instead of 1.00's (#13340) --- rpcs3/rpcs3qt/game_list_frame.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rpcs3/rpcs3qt/game_list_frame.cpp b/rpcs3/rpcs3qt/game_list_frame.cpp index 5d4a7e4daa..b105779baa 100644 --- a/rpcs3/rpcs3qt/game_list_frame.cpp +++ b/rpcs3/rpcs3qt/game_list_frame.cpp @@ -657,6 +657,15 @@ void game_list_frame::Refresh(const bool from_drive, const bool scroll_after) game.bootable = psf::get_integer(psf, "BOOTABLE", 0); game.attr = psf::get_integer(psf, "ATTRIBUTE", 0); game.icon_path = sfo_dir + "/ICON0.PNG"; + + if (game.category == "DG") + { + std::string latest_icon = rpcs3::utils::get_hdd0_dir() + "game/" + game.serial + "/ICON0.PNG"; + if (fs::is_file(latest_icon)) + { + game.icon_path = std::move(latest_icon); + } + } } if (m_show_custom_icons)