MCPcopy Create free account
hub / github.com/TheOfficialFloW/VitaShell / contextMenuHomeEnterCallback

Function contextMenuHomeEnterCallback

main_context.c:672–831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670}
671
672static int contextMenuHomeEnterCallback(int sel, void *context) {
673 switch (sel) {
674 case MENU_HOME_ENTRY_REFRESH_LIVEAREA:
675 {
676 if (is_safe_mode) {
677 infoDialog(language_container[EXTENDED_PERMISSIONS_REQUIRED]);
678 } else {
679 initMessageDialog(SCE_MSG_DIALOG_BUTTON_TYPE_YESNO, language_container[REFRESH_LIVEAREA_QUESTION]);
680 setDialogStep(DIALOG_STEP_REFRESH_LIVEAREA_QUESTION);
681 }
682
683 break;
684 }
685
686 case MENU_HOME_ENTRY_REFRESH_LICENSE_DB:
687 {
688 if (is_safe_mode) {
689 infoDialog(language_container[EXTENDED_PERMISSIONS_REQUIRED]);
690 } else {
691 initMessageDialog(SCE_MSG_DIALOG_BUTTON_TYPE_YESNO, language_container[REFRESH_LICENSE_DB_QUESTION]);
692 setDialogStep(DIALOG_STEP_REFRESH_LICENSE_DB_QUESTION);
693 }
694
695 break;
696 }
697
698 case MENU_HOME_ENTRY_MOUNT_UMA0:
699 {
700 if (is_safe_mode) {
701 infoDialog(language_container[EXTENDED_PERMISSIONS_REQUIRED]);
702 } else {
703 if (checkFileExist("sdstor0:uma-lp-act-entire")) {
704 int res = vshIoMount(0xF00, NULL, 0, 0, 0, 0);
705 if (res < 0)
706 errorDialog(res);
707 else
708 infoDialog(language_container[UMA0_MOUNTED]);
709 refreshFileList();
710 } else {
711 initMessageDialog(SCE_MSG_DIALOG_BUTTON_TYPE_CANCEL, language_container[USB_WAIT_ATTACH]);
712 setDialogStep(DIALOG_STEP_USB_ATTACH_WAIT);
713 }
714 }
715
716 break;
717 }
718
719 case MENU_HOME_ENTRY_MOUNT_IMC0:
720 {
721 if (is_safe_mode) {
722 infoDialog(language_container[EXTENDED_PERMISSIONS_REQUIRED]);
723 } else {
724 int res = vshIoMount(0xD00, NULL, 2, 0, 0, 0);
725 if (res < 0)
726 errorDialog(res);
727 else
728 infoDialog(language_container[IMC0_MOUNTED]);
729 refreshFileList();

Callers

nothing calls this directly

Calls 11

infoDialogFunction · 0.85
initMessageDialogFunction · 0.85
setDialogStepFunction · 0.85
checkFileExistFunction · 0.85
vshIoMountFunction · 0.85
errorDialogFunction · 0.85
refreshFileListFunction · 0.85
mountUsbUx0Function · 0.85
umountUsbUx0Function · 0.85
mountGamecardUx0Function · 0.85
umountGamecardUx0Function · 0.85

Tested by

no test coverage detected