1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-09-19 13:33:25 +01:00

Missing fs commit changes.

This commit is contained in:
Pablo Curiel 2020-08-01 00:52:40 -04:00
parent 64f3a566f8
commit ca333bd71d
4 changed files with 15 additions and 0 deletions

View file

@ -58,6 +58,7 @@
fwrite(app_metadata->icon, 1, app_metadata->icon_size, icon_jpg);
fclose(icon_jpg);
icon_jpg = NULL;
utilsCommitSdCardFileSystemChanges();
}
}
}
@ -75,5 +76,6 @@
fclose(title_infos_txt);
title_infos_txt = NULL;
utilsCommitSdCardFileSystemChanges();
}
}

View file

@ -90,6 +90,7 @@ int main(int argc, char *argv[])
fwrite(&gc_key_area, 1, sizeof(GameCardKeyArea), kafd);
fclose(kafd);
utilsCommitSdCardFileSystemChanges();
consolePrint("successfully saved key area to \"%s\"\n", path);

View file

@ -50,6 +50,7 @@ static void dumpPartitionFs(TitleInfo *info, NcaFsSectionContext *nca_fs_ctx)
char *pfs_entry_name = NULL;
size_t path_len = 0;
*path = '\0';
if (!pfsInitializeContext(&pfs_ctx, nca_fs_ctx))
{
@ -117,6 +118,8 @@ end:
remove(path);
}
if (*path) utilsCommitFileSystemChangesByPath(path);
pfsFreeContext(&pfs_ctx);
}
@ -129,6 +132,7 @@ static void dumpRomFs(TitleInfo *info, NcaFsSectionContext *nca_fs_ctx)
RomFileSystemFileEntry *romfs_file_entry = NULL;
size_t path_len = 0;
*path = '\0';
if (!romfsInitializeContext(&romfs_ctx, nca_fs_ctx))
{
@ -190,6 +194,8 @@ end:
remove(path);
}
if (*path) utilsCommitFileSystemChangesByPath(path);
romfsFreeContext(&romfs_ctx);
}

View file

@ -50,6 +50,7 @@ static void dumpPartitionFs(TitleInfo *info, NcaFsSectionContext *nca_fs_ctx)
char *pfs_entry_name = NULL;
size_t path_len = 0;
*path = '\0';
if (!pfsInitializeContext(&pfs_ctx, nca_fs_ctx))
{
@ -117,6 +118,8 @@ end:
remove(path);
}
if (*path) utilsCommitFileSystemChangesByPath(path);
pfsFreeContext(&pfs_ctx);
}
@ -129,6 +132,7 @@ static void dumpRomFs(TitleInfo *info, NcaFsSectionContext *nca_fs_ctx)
RomFileSystemFileEntry *romfs_file_entry = NULL;
size_t path_len = 0;
*path = '\0';
if (!romfsInitializeContext(&romfs_ctx, nca_fs_ctx))
{
@ -190,6 +194,8 @@ end:
remove(path);
}
if (*path) utilsCommitFileSystemChangesByPath(path);
romfsFreeContext(&romfs_ctx);
}