xci/appfs: recurse into program nca

This commit is contained in:
Michael Scire 2022-06-10 20:26:22 -07:00
parent e0d1b3affd
commit 1b6d7f8a29
2 changed files with 9 additions and 1 deletions

View File

@ -449,6 +449,11 @@ namespace ams::hactool {
}
void Processor::SaveAsApplicationFileSystem(ProcessAsApplicationFileSystemContext &ctx) {
/* Save the target application's program nca. */
if (ctx.has_target) {
this->SaveAsNca(ctx.app_nca_ctx);
}
/* TODO */
AMS_UNUSED(ctx);
}

View File

@ -373,7 +373,10 @@ namespace ams::hactool {
if (m_options.secure_partition_out_dir != nullptr) { ExtractDirectoryWithProgress(m_local_fs, ctx.secure_partition.fs, "secure:", m_options.secure_partition_out_dir, "/"); }
if (m_options.update_partition_out_dir != nullptr) { ExtractDirectoryWithProgress(m_local_fs, ctx.update_partition.fs, "update:", m_options.update_partition_out_dir, "/"); }
/* TODO: Recurse, dump NCAs? */
/* Save the application filesystem. */
if (ctx.secure_partition.fs != nullptr) {
this->SaveAsApplicationFileSystem(ctx.app_ctx);
}
}
}