mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
updates now fully extract to game update folder
This commit is contained in:
parent
6763cb93c2
commit
ba7c9137ad
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <zlib-ng.h>
|
#include <zlib-ng.h>
|
||||||
#include "common/io_file.h"
|
#include "common/io_file.h"
|
||||||
|
#include "common/logging/formatter.h"
|
||||||
#include "core/file_format/pkg.h"
|
#include "core/file_format/pkg.h"
|
||||||
#include "core/file_format/pkg_type.h"
|
#include "core/file_format/pkg_type.h"
|
||||||
|
|
||||||
@ -349,7 +350,8 @@ bool PKG::Extract(const std::filesystem::path& filepath, const std::filesystem::
|
|||||||
auto parent_path = extract_path.parent_path();
|
auto parent_path = extract_path.parent_path();
|
||||||
auto title_id = GetTitleID();
|
auto title_id = GetTitleID();
|
||||||
|
|
||||||
if (parent_path.filename() != title_id) {
|
if (parent_path.filename() != title_id &&
|
||||||
|
!fmt::UTF(extract_path.u8string()).data.ends_with("-UPDATE")) {
|
||||||
extractPaths[ndinode_counter] = parent_path / title_id;
|
extractPaths[ndinode_counter] = parent_path / title_id;
|
||||||
} else {
|
} else {
|
||||||
// DLCs path has different structure
|
// DLCs path has different structure
|
||||||
|
Loading…
Reference in New Issue
Block a user