1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-22 18:26:39 +00:00

utils: initialize / close BFSAR interface.

This commit is contained in:
Pablo Curiel 2021-06-21 20:32:56 -04:00
parent f14107662b
commit 2c1d58309a

View file

@ -29,6 +29,7 @@
#include "usb.h"
#include "title.h"
#include "bfttf.h"
#include "bfsar.h"
#include "fatfs/ff.h"
/* Reference: https://docs.microsoft.com/en-us/windows/win32/fileio/filesystem-functionality-comparison#limits. */
@ -153,6 +154,9 @@ bool utilsInitializeResources(const int program_argc, const char **program_argv)
/* Initialize BFTTF interface. */
if (!bfttfInitialize()) break;
/* Initialize BFSAR interface. */
if (!bfsarInitialize()) break;
/* Mount eMMC BIS System partition. */
if (!utilsMountEmmcBisSystemPartitionStorage()) break;
@ -212,6 +216,9 @@ void utilsCloseResources(void)
/* Unmount eMMC BIS System partition. */
utilsUnmountEmmcBisSystemPartitionStorage();
/* Deinitialize BFSAR interface. */
bfsarExit();
/* Deinitialize BFTTF interface. */
bfttfExit();