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:
parent
d69e345bc0
commit
acf9caa4ae
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user