1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-12-22 16:42:11 +00:00

poc: handle LFS for SystemProgram and SystemData

This commit is contained in:
Pablo Curiel 2023-07-22 00:04:51 +02:00
parent a8a348afc8
commit e3dc98643c

View file

@ -3134,7 +3134,9 @@ static bool saveNintendoContentArchiveFsSection(void *userdata)
/* Override LayeredFS flag, if needed. */
if (use_layeredfs_dir && \
(title_type < NcmContentMetaType_Application || \
(title_type == NcmContentMetaType_Unknown || (title_type > NcmContentMetaType_SystemData && title_type < NcmContentMetaType_Application) || \
(title_type == NcmContentMetaType_SystemProgram && (content_type != NcmContentType_Program || nca_fs_ctx->section_idx != 0)) || \
(title_type == NcmContentMetaType_SystemData && (content_type != NcmContentType_Data || nca_fs_ctx->section_idx != 0)) || \
((title_type == NcmContentMetaType_Application || title_type == NcmContentMetaType_Patch) && (content_type != NcmContentType_Program || nca_fs_ctx->section_idx > 1)) || \
((title_type == NcmContentMetaType_AddOnContent || title_type == NcmContentMetaType_DataPatch) && (content_type != NcmContentType_Data || nca_fs_ctx->section_idx != 0))))
{