From 8b4de95919f867187c5d34698f25438beed1170e Mon Sep 17 00:00:00 2001 From: raven02 Date: Sun, 14 Dec 2014 15:04:29 +0800 Subject: [PATCH] fix icon loading for blu-ray disc --- rpcs3/Gui/GameViewer.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/rpcs3/Gui/GameViewer.cpp b/rpcs3/Gui/GameViewer.cpp index 7b1bbdb8c5..cfcf2a5faf 100644 --- a/rpcs3/Gui/GameViewer.cpp +++ b/rpcs3/Gui/GameViewer.cpp @@ -149,7 +149,6 @@ void GameViewer::LoadPSF() continue; GameInfo game; - game.icon_path = wxGetCwd() + m_path + m_games[i] + "/ICON0.PNG"; game.root = m_games[i]; game.serial = psf.GetString("TITLE_ID"); game.name = psf.GetString("TITLE"); @@ -160,13 +159,21 @@ void GameViewer::LoadPSF() game.resolution = psf.GetInteger("RESOLUTION"); game.sound_format = psf.GetInteger("SOUND_FORMAT"); - if(game.serial.length() == 9) + if (game.serial.length() == 9) + { game.serial = game.serial.substr(0, 4) + "-" + game.serial.substr(4, 5); + } if (game.category.substr(0, 2) == "HG") + { game.category = "HDD Game"; + game.icon_path = wxGetCwd() + m_path + m_games[i] + "/ICON0.PNG"; + } else if (game.category.substr(0, 2) == "DG") + { + game.icon_path = wxGetCwd() + m_path + m_games[i] + "/PS3_GAME/ICON0.PNG"; game.category = "Disc Game"; + } m_game_data.push_back(game); }