From 62c29308db0280d4a7fef528e437086e36e95835 Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Wed, 10 Jan 2024 11:44:59 +0100 Subject: [PATCH] Fix output directory for LFS RomFS dumps. Fixes #154 --- code_templates/nxdt_rw_poc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code_templates/nxdt_rw_poc.c b/code_templates/nxdt_rw_poc.c index d8b5ed3..2075b8f 100644 --- a/code_templates/nxdt_rw_poc.c +++ b/code_templates/nxdt_rw_poc.c @@ -3519,7 +3519,7 @@ static bool browseNintendoContentArchiveFsSection(void *userdata) title_id = (title_type == NcmContentMetaType_Patch ? titleGetApplicationIdByPatchId(title_id) : \ (title_type == NcmContentMetaType_DataPatch ? titleGetAddOnContentIdByDataPatchId(title_id) : title_id)); - base_out_path = generateOutputLayeredFsFileName(title_id + nca_ctx->id_offset, NULL, "exefs"); + base_out_path = generateOutputLayeredFsFileName(title_id + nca_ctx->id_offset, NULL, section_type == NcaFsSectionType_PartitionFs ? "exefs" : "romfs"); } else { snprintf(subdir, MAX_ELEMENTS(subdir), "NCA FS/%s/Extracted", nca_ctx->storage_id == NcmStorageId_BuiltInSystem ? "System" : "User"); snprintf(extension, MAX_ELEMENTS(extension), "/%s #%u/%u", titleGetNcmContentTypeName(nca_ctx->content_type), nca_ctx->id_offset, nca_fs_ctx->section_idx);