mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-10 10:09:22 +00:00
Install PKGs into custom folder
This commit is contained in:
parent
2f8a41d810
commit
804ee1183b
2 changed files with 4 additions and 8 deletions
|
@ -270,7 +270,10 @@ void MainFrame::InstallPkg(wxCommandEvent& WXUNUSED(event))
|
||||||
|
|
||||||
if (pkg_f)
|
if (pkg_f)
|
||||||
{
|
{
|
||||||
PKGLoader::Install(pkg_f, "/dev_hdd0/game/");
|
Emu.GetVFS().Init("/");
|
||||||
|
std::string local_path;
|
||||||
|
Emu.GetVFS().GetDevice("/dev_hdd0/game/", local_path);
|
||||||
|
PKGLoader::Install(pkg_f, local_path + "/");
|
||||||
|
|
||||||
// Refresh game list
|
// Refresh game list
|
||||||
m_game_viewer->Refresh();
|
m_game_viewer->Refresh();
|
||||||
|
|
|
@ -13,13 +13,6 @@ bool PKGLoader::Install(const fs::file& pkg_f, std::string dest)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: This shouldn't use current dir
|
|
||||||
dest.insert(0, 1, '.');
|
|
||||||
if (!dest.empty() && dest.back() != '/')
|
|
||||||
{
|
|
||||||
dest += '/';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fetch title ID from the header.
|
// Fetch title ID from the header.
|
||||||
char title_id[48];
|
char title_id[48];
|
||||||
pkg_f.seek(48);
|
pkg_f.seek(48);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue