diff --git a/rpcs3/Gui/MainFrame.cpp b/rpcs3/Gui/MainFrame.cpp index 5e4eacad73..d4e876eb36 100644 --- a/rpcs3/Gui/MainFrame.cpp +++ b/rpcs3/Gui/MainFrame.cpp @@ -270,7 +270,10 @@ void MainFrame::InstallPkg(wxCommandEvent& WXUNUSED(event)) 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 m_game_viewer->Refresh(); diff --git a/rpcs3/Loader/PKG.cpp b/rpcs3/Loader/PKG.cpp index e484e2afa0..e517483b2f 100644 --- a/rpcs3/Loader/PKG.cpp +++ b/rpcs3/Loader/PKG.cpp @@ -13,13 +13,6 @@ bool PKGLoader::Install(const fs::file& pkg_f, std::string dest) 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. char title_id[48]; pkg_f.seek(48);