mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-06 01:18:14 +01:00
libwhb: Initialize FSCmdBlock in WHBUnmountSdCard
This commit is contained in:
parent
492bad4382
commit
c0c1faa1e9
@ -11,4 +11,6 @@ target_link_libraries(triangle
|
||||
defaultheap
|
||||
gx2
|
||||
gfd
|
||||
proc_ui)
|
||||
nsysnet
|
||||
proc_ui
|
||||
sysapp)
|
||||
|
@ -113,7 +113,7 @@ exit:
|
||||
WHBLogPrintf("Exiting...");
|
||||
GX2RDestroyBufferEx(&positionBuffer, 0);
|
||||
GX2RDestroyBufferEx(&colourBuffer, 0);
|
||||
//WHBUnmountSdCard(); !! freezes on unmount for unkown reason !!
|
||||
WHBUnmountSdCard();
|
||||
WHBGfxShutdown();
|
||||
WHBProcShutdown();
|
||||
return result;
|
||||
|
@ -67,6 +67,8 @@ WHBUnmountSdCard()
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
FSInitCmdBlock(&cmd);
|
||||
|
||||
result = FSUnmount(&sClient, &cmd, sMountPath, -1);
|
||||
if (result < 0) {
|
||||
WHBLogPrintf("%s: FSUnmount error %d", __FUNCTION__, result);
|
||||
|
Loading…
Reference in New Issue
Block a user