Skip to content

Commit

Permalink
updates now fully extract to game update folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ElBread3 committed Oct 15, 2024
1 parent 76da809 commit 5d114b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/file_format/pkg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <zlib-ng.h>
#include "common/io_file.h"
#include "common/logging/formatter.h"
#include "core/file_format/pkg.h"
#include "core/file_format/pkg_type.h"

Expand Down Expand Up @@ -349,7 +350,8 @@ bool PKG::Extract(const std::filesystem::path& filepath, const std::filesystem::
auto parent_path = extract_path.parent_path();
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;
} else {
// DLCs path has different structure
Expand Down

0 comments on commit 5d114b9

Please sign in to comment.