mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 08:21:29 +12:00
vfs path fix
This commit is contained in:
parent
6c571b30d2
commit
cb52ca220e
1 changed files with 6 additions and 2 deletions
|
@ -148,6 +148,10 @@ void GameViewer::LoadPSF()
|
||||||
if(!psf.Load(false))
|
if(!psf.Load(false))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// get local path from VFS...
|
||||||
|
std::string local_path;
|
||||||
|
Emu.GetVFS().GetDevice(m_path, local_path);
|
||||||
|
|
||||||
GameInfo game;
|
GameInfo game;
|
||||||
game.root = m_games[i];
|
game.root = m_games[i];
|
||||||
game.serial = psf.GetString("TITLE_ID");
|
game.serial = psf.GetString("TITLE_ID");
|
||||||
|
@ -167,12 +171,12 @@ void GameViewer::LoadPSF()
|
||||||
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";
|
game.icon_path = local_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";
|
||||||
|
game.icon_path = local_path + "/" + m_games[i] + "/PS3_GAME/ICON0.PNG";
|
||||||
}
|
}
|
||||||
|
|
||||||
m_game_data.push_back(game);
|
m_game_data.push_back(game);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue