mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-06 07:05:04 -06:00
Add more fallbacks to the steam banner
This commit is contained in:
parent
801a1e6c38
commit
8cdad0af98
@ -531,7 +531,7 @@ namespace gui::utils
|
|||||||
// Try to find a nice banner for steam
|
// Try to find a nice banner for steam
|
||||||
const std::string sfo_dir = rpcs3::utils::get_sfo_dir_from_game_path(game->info.path);
|
const std::string sfo_dir = rpcs3::utils::get_sfo_dir_from_game_path(game->info.path);
|
||||||
|
|
||||||
for (const std::string& filename : { "PIC1.PNG", "PIC3.PNG" })
|
for (const std::string& filename : {"PIC1.PNG", "PIC3.PNG", "PIC0.PNG", "PIC2.PNG", "ICON0.PNG"})
|
||||||
{
|
{
|
||||||
if (const std::string filepath = fmt::format("%s/%s", sfo_dir, filename); fs::is_file(filepath))
|
if (const std::string filepath = fmt::format("%s/%s", sfo_dir, filename); fs::is_file(filepath))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user