From 1e665874ba115b72a44121c061eda1ab345fb369 Mon Sep 17 00:00:00 2001 From: dimok321 <15055714+dimok789@users.noreply.github.com> Date: Fri, 5 Jun 2009 15:43:32 +0000 Subject: [PATCH] *Fixed codedumps at startup --- source/fatmounter.c | 6 ++++++ source/libwiigui/gui_gamegrid.cpp | 6 ++++-- source/main.cpp | 6 ++++-- source/wpad.c | 3 ++- source/wpad.h | 3 +-- 5 files changed, 17 insertions(+), 7 deletions(-) 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"