From 090de0e2cced631fd3427b35575a51c651fa50cd Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 16 Oct 2020 19:21:26 +0200 Subject: [PATCH] Write the FSA fd to the global variable to be able to close it on exit --- .gitignore | 2 ++ src/main.cpp | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index fb8406e..fb68992 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ sysapp.cbp *.elf *.wps .idea/ +cmake-build-debug/ +CMakeLists.txt diff --git a/src/main.cpp b/src/main.cpp index c1a8eef..69b9015 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -66,8 +66,6 @@ ON_APPLICATION_START(args) { //! Initialize FS * //!******************************************************************* - int fsaFd = -1; - DEBUG_FUNCTION_LINE("IOSUHAX_Open"); int res = IOSUHAX_Open(NULL); if(res < 0) { @@ -83,7 +81,7 @@ ON_APPLICATION_START(args) { DEBUG_FUNCTION_LINE("IOSUHAX_FSA_Open failed"); } - DEBUG_FUNCTION_LINE("IOSUHAX_FSA_Open"); + DEBUG_FUNCTION_LINE("IOSUHAX_FSA_Open done"); mount_fs("slccmpt01", fsaFd, "/dev/slccmpt01", "/vol/storage_slccmpt01"); mount_fs("storage_odd_tickets", fsaFd, "/dev/odd01", "/vol/storage_odd_tickets");