aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/nup_writer.cpp
diff options
context:
space:
mode:
authorcirakg <cirakg@cirakg.xyz>2026-11-03 01:20:05 +0100
committercirakg <cirakg@cirakg.xyz>2026-11-03 01:20:05 +0100
commite9211374ad3728cad12e6520dbaa8f90c3cce280 (patch)
treeff6fd65114cd4e1f1abf6e1e589d1b657e1f878b /src/core/file_sys/nup_writer.cpp
parentb3244c282332506d904c866b76945ce9872329b2 (diff)
parentebec180bf1125b4f29b068922d1220c8af9b63b0 (diff)
Merge upstream Djihads80/Eglantine nx2 into nx2
Diffstat (limited to 'src/core/file_sys/nup_writer.cpp')
-rw-r--r--src/core/file_sys/nup_writer.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/file_sys/nup_writer.cpp b/src/core/file_sys/nup_writer.cpp
index 4161969f98..54bb4c77d3 100644
--- a/src/core/file_sys/nup_writer.cpp
+++ b/src/core/file_sys/nup_writer.cpp
@@ -638,10 +638,13 @@ private:
std::ranges::find(skip, lower) != skip.end()) {
continue;
}
+ // Keep the dump's own layout for anything that is not exefs/romfs, the
+ // same way the reference packer does: a root-level data/ folder stays
+ // data/, and other extras keep their name instead of moving under data/.
if (entry.is_directory(ec)) {
- CollectTree(index, entry.path(), "data/" + name);
+ CollectTree(index, entry.path(), name);
} else {
- AddFile(index, entry, "data/" + name);
+ AddFile(index, entry, name);
}
}
return plan.packages.back().title_id;