*I replaced the (new) libogc in our download section with another one. Please get it. Its a newer one made from newest SVN thx to Drayx7.

This commit is contained in:
dimok321 2009-05-19 07:52:17 +00:00
parent 51ed0543e1
commit 3c2eec0fbb

View File

@ -6,7 +6,8 @@
#include <ogc/usbstorage.h> #include <ogc/usbstorage.h>
#include <sdcard/wiisd_io.h> #include <sdcard/wiisd_io.h>
#define CACHE 8 #define CACHE 4
#define SECTORS 64
int USBDevice_Init() int USBDevice_Init()
@ -14,7 +15,7 @@ int USBDevice_Init()
//right now only mounts first partition and only under IOS36 //right now only mounts first partition and only under IOS36
__io_usbstorage.startup(); __io_usbstorage.startup();
if (fatMountSimple("USB", &__io_usbstorage)) { if (fatMount("USB", &__io_usbstorage, 0, CACHE, SECTORS)) {
return 1; return 1;
} }
@ -41,7 +42,7 @@ int SDCard_Init()
if (!isSdInserted()){ if (!isSdInserted()){
return -1; return -1;
} }
if (fatMountSimple("SD", &__io_wiisd)) { if (fatMount("SD", &__io_wiisd, 0, CACHE, SECTORS)) {
return 1; return 1;
} }
return -1; return -1;