mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-12-23 03:11:49 +01:00
Write the FSA fd to the global variable to be able to close it on exit
This commit is contained in:
parent
403342aa5e
commit
090de0e2cc
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,3 +5,5 @@ sysapp.cbp
|
|||||||
*.elf
|
*.elf
|
||||||
*.wps
|
*.wps
|
||||||
.idea/
|
.idea/
|
||||||
|
cmake-build-debug/
|
||||||
|
CMakeLists.txt
|
||||||
|
@ -66,8 +66,6 @@ ON_APPLICATION_START(args) {
|
|||||||
//! Initialize FS *
|
//! Initialize FS *
|
||||||
//!*******************************************************************
|
//!*******************************************************************
|
||||||
|
|
||||||
int fsaFd = -1;
|
|
||||||
|
|
||||||
DEBUG_FUNCTION_LINE("IOSUHAX_Open");
|
DEBUG_FUNCTION_LINE("IOSUHAX_Open");
|
||||||
int res = IOSUHAX_Open(NULL);
|
int res = IOSUHAX_Open(NULL);
|
||||||
if(res < 0) {
|
if(res < 0) {
|
||||||
@ -83,7 +81,7 @@ ON_APPLICATION_START(args) {
|
|||||||
DEBUG_FUNCTION_LINE("IOSUHAX_FSA_Open failed");
|
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("slccmpt01", fsaFd, "/dev/slccmpt01", "/vol/storage_slccmpt01");
|
||||||
mount_fs("storage_odd_tickets", fsaFd, "/dev/odd01", "/vol/storage_odd_tickets");
|
mount_fs("storage_odd_tickets", fsaFd, "/dev/odd01", "/vol/storage_odd_tickets");
|
||||||
|
Loading…
Reference in New Issue
Block a user