1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-26 12:12:02 +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 "usb.h"
#include "title.h" #include "title.h"
#include "bfttf.h" #include "bfttf.h"
#include "bfsar.h"
#include "fatfs/ff.h" #include "fatfs/ff.h"
/* Reference: https://docs.microsoft.com/en-us/windows/win32/fileio/filesystem-functionality-comparison#limits. */ /* 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. */ /* Initialize BFTTF interface. */
if (!bfttfInitialize()) break; if (!bfttfInitialize()) break;
/* Initialize BFSAR interface. */
if (!bfsarInitialize()) break;
/* Mount eMMC BIS System partition. */ /* Mount eMMC BIS System partition. */
if (!utilsMountEmmcBisSystemPartitionStorage()) break; if (!utilsMountEmmcBisSystemPartitionStorage()) break;
@ -212,6 +216,9 @@ void utilsCloseResources(void)
/* Unmount eMMC BIS System partition. */ /* Unmount eMMC BIS System partition. */
utilsUnmountEmmcBisSystemPartitionStorage(); utilsUnmountEmmcBisSystemPartitionStorage();
/* Deinitialize BFSAR interface. */
bfsarExit();
/* Deinitialize BFTTF interface. */ /* Deinitialize BFTTF interface. */
bfttfExit(); bfttfExit();