#include #include #include #include #include #include #include #include #define CACHE 4 #define SECTORS 64 int USBDevice_Init() { //closing all open Files write back the cache and then shutdown em! fatUnmount("USB:/"); //right now only mounts first partition if (fatMount("USB", &__io_usbstorage, 0, CACHE, SECTORS)) { return 1; } return -1; } void USBDevice_deInit() { //closing all open Files write back the cache and then shutdown em! fatUnmount("USB:/"); } int isSdInserted() { return __io_wiisd.isInserted(); } int SDCard_Init() { //closing all open Files write back the cache and then shutdown em! fatUnmount("SD:/"); //right now only mounts first partition if (fatMount("SD", &__io_wiisd, 0, CACHE, SECTORS)) return 1; return -1; } void SDCard_deInit() { //closing all open Files write back the cache and then shutdown em! fatUnmount("SD:/"); }