diff --git a/source/fatmounter.c b/source/fatmounter.c index 347861ee..cfa49165 100644 --- a/source/fatmounter.c +++ b/source/fatmounter.c @@ -16,6 +16,8 @@ int USBDevice_Init() { return 0; //closing all open Files write back the cache and then shutdown em! + __io_usbstorage.startup(); + fatUnmount("USB:/"); //right now only mounts first partition if (fatMount("USB", &__io_usbstorage, 0, CACHE, SECTORS)) { @@ -29,6 +31,7 @@ void USBDevice_deInit() return; //closing all open Files write back the cache and then shutdown em! fatUnmount("USB:/"); + __io_usbstorage.shutdown(); } int isSdInserted() @@ -39,6 +42,8 @@ int isSdInserted() int SDCard_Init() { //closing all open Files write back the cache and then shutdown em! + __io_wiisd.startup(); + fatUnmount("SD:/"); //right now only mounts first partition if (fatMount("SD", &__io_wiisd, 0, CACHE, SECTORS)) @@ -50,4 +55,5 @@ void SDCard_deInit() { //closing all open Files write back the cache and then shutdown em! fatUnmount("SD:/"); + __io_wiisd.shutdown(); } diff --git a/source/libwiigui/gui_gamegrid.cpp b/source/libwiigui/gui_gamegrid.cpp index 946d74ee..d4571d64 100644 --- a/source/libwiigui/gui_gamegrid.cpp +++ b/source/libwiigui/gui_gamegrid.cpp @@ -464,7 +464,10 @@ void GuiGameGrid::Update(GuiTrigger * t) void GuiGameGrid::Reload(struct discHdr * l, int count) { - for(int i=0; i -#include +#include +#include #include "sys.h" #include "wpad.h" diff --git a/source/wpad.h b/source/wpad.h index 6e39626b..55e22f28 100644 --- a/source/wpad.h +++ b/source/wpad.h @@ -1,8 +1,7 @@ #ifndef _WPAD_H_ #define _WPAD_H_ -#include -#include +#include #ifdef __cplusplus extern "C"