diff --git a/shadPS4/emulator/fileFormat/PKG.cpp b/shadPS4/emulator/fileFormat/PKG.cpp index c27f3ab8..15bd7ad8 100644 --- a/shadPS4/emulator/fileFormat/PKG.cpp +++ b/shadPS4/emulator/fileFormat/PKG.cpp @@ -75,13 +75,13 @@ bool PKG::extract(const std::string& filepath, const std::string& extractPath, s std::string name = getEntryNameByType(entry.id); if (!name.empty()) { - QString filepath= QString::fromStdString(extractPath+name); + QString filepath= QString::fromStdString(extractPath+ "/sce_sys/" + name); QDir dir = QFileInfo(filepath).dir(); if (!dir.exists()) { dir.mkpath(dir.path()); } FsFile out; - out.Open(extractPath + name, fsWrite); + out.Open(extractPath + "/sce_sys/" + name, fsWrite); out.Write(pkg + entry.offset, entry.size); out.Close(); } @@ -89,7 +89,7 @@ bool PKG::extract(const std::string& filepath, const std::string& extractPath, s { //just print with id FsFile out; - out.Open(extractPath + std::to_string(entry.id), fsWrite); + out.Open(extractPath + "/sce_sys/" + std::to_string(entry.id), fsWrite); out.Write(pkg + entry.offset, entry.size); out.Close(); } diff --git a/shadPS4/gui/GameListViewer.cpp b/shadPS4/gui/GameListViewer.cpp index 322f204e..f8a411ff 100644 --- a/shadPS4/gui/GameListViewer.cpp +++ b/shadPS4/gui/GameListViewer.cpp @@ -150,11 +150,11 @@ void GameListWorker::AddEntriesToGameList(const std::string& dir_path) { foreach(QFileInfo item, fList) { PSF psf; - if (!psf.open(item.absoluteFilePath().toStdString() + "/PARAM.SFO")) + if (!psf.open(item.absoluteFilePath().toStdString() + "/sce_sys/PARAM.SFO")) continue;//if we can't open param.sfo go to the next entry //TODO std::string test = psf.get_string("TITLE_ID"); - QString iconpath(item.absoluteFilePath() + "/ICON0.PNG"); + QString iconpath(item.absoluteFilePath() + "/sce_sys/ICON0.PNG"); QString t; emit EntryReady({