fix icon loading for blu-ray disc
This commit is contained in:
@@ -149,7 +149,6 @@ void GameViewer::LoadPSF()
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
GameInfo game;
|
GameInfo game;
|
||||||
game.icon_path = wxGetCwd() + m_path + m_games[i] + "/ICON0.PNG";
|
|
||||||
game.root = m_games[i];
|
game.root = m_games[i];
|
||||||
game.serial = psf.GetString("TITLE_ID");
|
game.serial = psf.GetString("TITLE_ID");
|
||||||
game.name = psf.GetString("TITLE");
|
game.name = psf.GetString("TITLE");
|
||||||
@@ -161,12 +160,20 @@ void GameViewer::LoadPSF()
|
|||||||
game.sound_format = psf.GetInteger("SOUND_FORMAT");
|
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);
|
game.serial = game.serial.substr(0, 4) + "-" + game.serial.substr(4, 5);
|
||||||
|
}
|
||||||
|
|
||||||
if (game.category.substr(0, 2) == "HG")
|
if (game.category.substr(0, 2) == "HG")
|
||||||
|
{
|
||||||
game.category = "HDD Game";
|
game.category = "HDD Game";
|
||||||
|
game.icon_path = wxGetCwd() + m_path + m_games[i] + "/ICON0.PNG";
|
||||||
|
}
|
||||||
else if (game.category.substr(0, 2) == "DG")
|
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";
|
game.category = "Disc Game";
|
||||||
|
}
|
||||||
|
|
||||||
m_game_data.push_back(game);
|
m_game_data.push_back(game);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user