From 2c1d58309aad576113baf05a22a68b34f3e3045f Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Mon, 21 Jun 2021 20:32:56 -0400 Subject: [PATCH] utils: initialize / close BFSAR interface. --- source/core/nxdt_utils.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/core/nxdt_utils.c b/source/core/nxdt_utils.c index 9024f20..e88e404 100644 --- a/source/core/nxdt_utils.c +++ b/source/core/nxdt_utils.c @@ -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();