mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:04:16 +01:00
WHB: Fix missing FSDelClient (#158)
This commit is contained in:
parent
1282cbbda3
commit
bc6ee14ca3
@ -17,6 +17,9 @@ typedef enum WHBFileError
|
||||
WHB_FILE_FATAL_ERROR = -1,
|
||||
} WHBFileError;
|
||||
|
||||
BOOL
|
||||
WHBDeInitFileSystem();
|
||||
|
||||
int32_t
|
||||
WHBOpenFile(const char *path,
|
||||
const char *mode);
|
||||
|
@ -26,6 +26,20 @@ InitFileSystem()
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOL
|
||||
WHBDeInitFileSystem()
|
||||
{
|
||||
if (sInitialised) {
|
||||
if (FSDelClient(&sClient, -1) != FS_STATUS_OK) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
sInitialised = FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int32_t
|
||||
WHBOpenFile(const char *path,
|
||||
const char *mode)
|
||||
|
@ -74,6 +74,12 @@ WHBUnmountSdCard()
|
||||
WHBLogPrintf("%s: FSUnmount error %d", __FUNCTION__, result);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
result = FSDelClient(&sClient, -1);
|
||||
if (result < 0) {
|
||||
WHBLogPrintf("%s: FSDelClient error %d", __FUNCTION__, result);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
sMounted = FALSE;
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user