int Mount_Devices() { printf("\n\nMounting available storage devices...\n"); Init_SD(); Init_USB(); if (!SDmnt && !USBmnt) { printf("No device detected..."); return -2; } else if ((SDmnt && !USBmnt) || (!SDmnt && USBmnt)) { isSD = (SDmnt && !USBmnt); printf("The %s will be used as the storage device.", (isSD ? "SD card" : "USB drive")); sleep(2); } else { u32 pressed; printf("Press A to use the SD Card.\n"); printf("Press B to use the USB device.\n"); while(true) { pressed = DetectInput(DI_BUTTONS_DOWN); if (pressed == WPAD_BUTTON_A) { isSD = true; break; } if (pressed == WPAD_BUTTON_B) { isSD = false; break; } } } return 0; }
uint8_t Init_View(void) { Init_USB(); }