mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 08:21:29 +12:00
GUI: show game icons in GameViewer
This commit is contained in:
parent
0e81313477
commit
6bd041f800
3 changed files with 38 additions and 8 deletions
|
@ -24,7 +24,7 @@ public:
|
|||
bool operator()(const GameInfo& game1, const GameInfo& game2) const
|
||||
{
|
||||
// Note that the column index has to match the appropriate GameInfo member
|
||||
switch (sortColumn)
|
||||
switch (sortColumn - 1) // skip *icon* column
|
||||
{
|
||||
case 0: return sortAscending ? (game1.name < game2.name) : (game1.name > game2.name);
|
||||
case 1: return sortAscending ? (game1.serial < game2.serial) : (game1.serial > game2.serial);
|
||||
|
@ -149,6 +149,7 @@ 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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue