if(key == PSP_CTRL_YES) {
switch(pos) {
case 0:
pspUsbDeviceFinishDevice();
sceUsbstorBootSetCapacity(0x800000);
setP(p0.x - 10, p0.y, p0.x + maxlen * 8 + 20, p0.y + menu_toggleusb_s * 20 + 30);
clearRect(0);
return 0;
case 1:
pspUsbDeviceSetDevice(PSP_USBDEVICE_FLASH0, 0, 0);
sceUsbstorBootSetCapacity(0x800000);
setP(p0.x - 10, p0.y, p0.x + maxlen * 8 + 20, p0.y + menu_toggleusb_s * 20 + 30);
clearRect(0);
return 0;
case 2:
pspUsbDeviceSetDevice(PSP_USBDEVICE_FLASH1, 0, 0);
sceUsbstorBootSetCapacity(0x800000);
setP(p0.x - 10, p0.y, p0.x + maxlen * 8 + 20, p0.y + menu_toggleusb_s * 20 + 30);
clearRect(0);
return 0;
case 3:
pspUsbDeviceSetDevice(PSP_USBDEVICE_FLASH2, 0, 0);
sceUsbstorBootSetCapacity(0x800000);
setP(p0.x - 10, p0.y, p0.x + maxlen * 8 + 20, p0.y + menu_toggleusb_s * 20 + 30);
clearRect(0);
return 0;
case 4:
pspUsbDeviceSetDevice(PSP_USBDEVICE_FLASH3, 0, 0);
sceUsbstorBootSetCapacity(0x800000);
setP(p0.x - 10, p0.y, p0.x + maxlen * 8 + 20, p0.y + menu_toggleusb_s * 20 + 30);
clearRect(0);
return 0;
case 5:
pspUsbDeviceSetDevice(PSP_USBDEVICE_UMD9660, 0, 0);
sceUsbstorBootSetCapacity(0x800000);
setP(p0.x - 10, p0.y, p0.x + maxlen * 8 + 20, p0.y + menu_toggleusb_s * 20 + 30);
clearRect(0);
return 0;
}
} else {
setP(p0.x - 10, p0.y, p0.x + maxlen * 8 + 20, p0.y + menu_toggleusb_s * 20 + 30);
clearRect(0);
return 0;
}
}
return 0;
}