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:
parent
f14107662b
commit
2c1d58309a
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue