Write the FSA fd to the global variable to be able to close it on exit

This commit is contained in:
Maschell 2020-10-16 19:21:26 +02:00
parent 403342aa5e
commit 090de0e2cc
2 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@ -5,3 +5,5 @@ sysapp.cbp
*.elf
*.wps
.idea/
cmake-build-debug/
CMakeLists.txt

View File

@ -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");