1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

Game list: Use the latest game icon instead of 1.00's (#13340)

This commit is contained in:
Elad Ashkenazi 2023-02-04 08:41:30 +02:00 committed by GitHub
parent d69e345bc0
commit acf9caa4ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)