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