mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-22 18:26:39 +00:00
Missing fs commit changes.
This commit is contained in:
parent
64f3a566f8
commit
ca333bd71d
4 changed files with 15 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue