Decompile menuhandlerPakCancelSave

This commit is contained in:
Ryan Dwyer 2020-01-04 14:44:16 +10:00
parent 6c07923163
commit 59278cc0eb
3 changed files with 10 additions and 19 deletions

View File

@ -2971,23 +2971,14 @@ glabel menuhandlerSaveLocation
/* f10a450: 00000000 */ sll $zero,$zero,0x0
);
GLOBAL_ASM(
glabel menuhandler0010a454
/* f10a454: 27bdffe8 */ addiu $sp,$sp,-24
/* f10a458: 24010006 */ addiu $at,$zero,0x6
/* f10a45c: afbf0014 */ sw $ra,0x14($sp)
/* f10a460: afa5001c */ sw $a1,0x1c($sp)
/* f10a464: 14810003 */ bne $a0,$at,.L0f10a474
/* f10a468: afa60020 */ sw $a2,0x20($sp)
/* f10a46c: 0fc3cdb7 */ jal menuPopDialog
/* f10a470: 00000000 */ sll $zero,$zero,0x0
.L0f10a474:
/* f10a474: 8fbf0014 */ lw $ra,0x14($sp)
/* f10a478: 27bd0018 */ addiu $sp,$sp,0x18
/* f10a47c: 00001025 */ or $v0,$zero,$zero
/* f10a480: 03e00008 */ jr $ra
/* f10a484: 00000000 */ sll $zero,$zero,0x0
);
s32 menuhandlerPakCancelSave(u32 operation, struct menu_item *item, s32 *value)
{
if (operation == MENUOP_SET) {
menuPopDialog();
}
return 0;
}
GLOBAL_ASM(
glabel menuhandler0010a488

View File

@ -68,7 +68,7 @@ s32 menuhandler00108ecc(u32, u32, u32 *);
s32 menuhandler00108f08(u32, u32, u32 *);
s32 menuhandler0010a120(u32, u32, u32 *);
s32 menuhandler0010a160(u32, u32, u32 *);
s32 menuhandler0010a454(u32, u32, u32 *);
s32 menuhandlerPakCancelSave(u32 operation, struct menu_item *item, s32 *value);
s32 menuhandler0010a488(u32, u32, u32 *);
s32 menuhandler0010a5ac(u32, u32, u32 *);
s32 menuhandler0010b14c(u32, u32, u32 *);

View File

@ -3434,7 +3434,7 @@ struct menu_item menuitems_selectlocation[] = {
{ MENUITEMTYPE_SELECTABLE, 3, 0x00000000, (u32)&func0f10a22c, (u32)&func0f10a2ec, menuhandlerSaveLocation },
{ MENUITEMTYPE_SEPARATOR, 0, 0x00000000, 0x00000000, 0x00000000, NULL },
{ MENUITEMTYPE_SELECTABLE, 0, 0x00000000, 0x00005772, 0x00000000, menuhandler0010a488 }, // "Delete Files..."
{ MENUITEMTYPE_SELECTABLE, 0, 0x00000000, 0x00005773, 0x00000000, menuhandler0010a454 }, // "Cancel"
{ MENUITEMTYPE_SELECTABLE, 0, 0x00000000, 0x00005773, 0x00000000, menuhandlerPakCancelSave }, // "Cancel"
{ MENUITEMTYPE_END, 0, 0x00000000, 0x00000000, 0x00000000, NULL },
};