Decompile menuhandlerMpInGameLimitLabel
This commit is contained in:
parent
b60125d032
commit
1f59a1f07d
|
|
@ -1881,50 +1881,18 @@ glabel func0f178050
|
|||
/* f178118: 27bd0020 */ addiu $sp,$sp,0x20
|
||||
);
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel menuhandler0017811c
|
||||
/* f17811c: 24010018 */ addiu $at,$zero,0x18
|
||||
/* f178120: 1481001f */ bne $a0,$at,.L0f1781a0
|
||||
/* f178124: afa60008 */ sw $a2,0x8($sp)
|
||||
/* f178128: 90a20001 */ lbu $v0,0x1($a1)
|
||||
/* f17812c: 24010001 */ addiu $at,$zero,0x1
|
||||
/* f178130: 3c0e800b */ lui $t6,0x800b
|
||||
/* f178134: 10400008 */ beqz $v0,.L0f178158
|
||||
/* f178138: 00000000 */ sll $zero,$zero,0x0
|
||||
/* f17813c: 1041000c */ beq $v0,$at,.L0f178170
|
||||
/* f178140: 3c0f800b */ lui $t7,0x800b
|
||||
/* f178144: 24010002 */ addiu $at,$zero,0x2
|
||||
/* f178148: 1041000f */ beq $v0,$at,.L0f178188
|
||||
/* f17814c: 3c18800b */ lui $t8,0x800b
|
||||
/* f178150: 10000014 */ beqz $zero,.L0f1781a4
|
||||
/* f178154: 00001025 */ or $v0,$zero,$zero
|
||||
.L0f178158:
|
||||
/* f178158: 91cecb9a */ lbu $t6,-0x3466($t6)
|
||||
/* f17815c: 2401003c */ addiu $at,$zero,0x3c
|
||||
/* f178160: 55c10010 */ bnel $t6,$at,.L0f1781a4
|
||||
/* f178164: 00001025 */ or $v0,$zero,$zero
|
||||
/* f178168: 03e00008 */ jr $ra
|
||||
/* f17816c: 24020001 */ addiu $v0,$zero,0x1
|
||||
.L0f178170:
|
||||
/* f178170: 91efcb9b */ lbu $t7,-0x3465($t7)
|
||||
/* f178174: 24010064 */ addiu $at,$zero,0x64
|
||||
/* f178178: 55e1000a */ bnel $t7,$at,.L0f1781a4
|
||||
/* f17817c: 00001025 */ or $v0,$zero,$zero
|
||||
/* f178180: 03e00008 */ jr $ra
|
||||
/* f178184: 24020001 */ addiu $v0,$zero,0x1
|
||||
.L0f178188:
|
||||
/* f178188: 9718cb9c */ lhu $t8,-0x3464($t8)
|
||||
/* f17818c: 24010190 */ addiu $at,$zero,0x190
|
||||
/* f178190: 57010004 */ bnel $t8,$at,.L0f1781a4
|
||||
/* f178194: 00001025 */ or $v0,$zero,$zero
|
||||
/* f178198: 03e00008 */ jr $ra
|
||||
/* f17819c: 24020001 */ addiu $v0,$zero,0x1
|
||||
.L0f1781a0:
|
||||
/* f1781a0: 00001025 */ or $v0,$zero,$zero
|
||||
.L0f1781a4:
|
||||
/* f1781a4: 03e00008 */ jr $ra
|
||||
/* f1781a8: 00000000 */ sll $zero,$zero,0x0
|
||||
);
|
||||
s32 menuhandlerMpInGameLimitLabel(u32 operation, struct menu_item *item, s32 *value)
|
||||
{
|
||||
if (operation == MENUOP_CHECKHIDDEN) {
|
||||
switch (item->param) {
|
||||
case 0: if (g_MpSetup.timelimit == 60) return true; break;
|
||||
case 1: if (g_MpSetup.scorelimit == 100) return true; break;
|
||||
case 2: if (g_MpSetup.teamscorelimit == 400) return true; break;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel menuhandler001781ac
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ s32 menudialog0017f930(u32, u32, u32 *);
|
|||
s32 menudialog00184ec0(u32, u32, u32 *);
|
||||
s32 menuhandler00177e00(u32, u32, u32 *);
|
||||
s32 menuhandler00178018(u32 operation, struct menu_item *item, s32 *value);
|
||||
s32 menuhandler0017811c(u32, u32, u32 *);
|
||||
s32 menuhandlerMpInGameLimitLabel(u32 operation, struct menu_item *item, s32 *value);
|
||||
s32 menuhandler001781ac(u32, u32, u32 *);
|
||||
s32 menuhandler001785c4(u32, u32, u32 *);
|
||||
s32 menuhandler001786d8(u32, u32, u32 *);
|
||||
|
|
|
|||
|
|
@ -10020,9 +10020,9 @@ struct menu_dialog menudialog_mpendgame = {
|
|||
struct menu_item menuitems_2a6cc[] = {
|
||||
{ MENUITEMTYPE_LABEL, 0, 0x00000020, (u32)&func0f17eac8, 0x00000000, menuhandler00178018 },
|
||||
{ MENUITEMTYPE_LABEL, 0, 0x00000020, (u32)&func0f18500c, 0x00000000, NULL },
|
||||
{ MENUITEMTYPE_LABEL, 0, 0x00000200, 0x000054a2, (u32)&func0f178050, menuhandler0017811c }, // "Time Limit:"
|
||||
{ MENUITEMTYPE_LABEL, 1, 0x00000200, 0x000054a3, (u32)&func0f178050, menuhandler0017811c }, // "Score Limit:"
|
||||
{ MENUITEMTYPE_LABEL, 2, 0x00000200, 0x000054a4, (u32)&func0f178050, menuhandler0017811c }, // "Team Score Limit:"
|
||||
{ MENUITEMTYPE_LABEL, 0, 0x00000200, 0x000054a2, (u32)&func0f178050, menuhandlerMpInGameLimitLabel }, // "Time Limit:"
|
||||
{ MENUITEMTYPE_LABEL, 1, 0x00000200, 0x000054a3, (u32)&func0f178050, menuhandlerMpInGameLimitLabel }, // "Score Limit:"
|
||||
{ MENUITEMTYPE_LABEL, 2, 0x00000200, 0x000054a4, (u32)&func0f178050, menuhandlerMpInGameLimitLabel }, // "Team Score Limit:"
|
||||
{ MENUITEMTYPE_SEPARATOR, 0, 0x00000000, 0x00000082, 0x00000000, NULL },
|
||||
{ MENUITEMTYPE_LABEL, 0, 0x00000000, 0x0000511e, (u32)&func0f1782f8, NULL }, // "Game Time:"
|
||||
{ MENUITEMTYPE_SELECTABLE, 1, 0x00000020, (u32)&func0f1782b8, 0x00000000, menuhandler001781ac },
|
||||
|
|
|
|||
Loading…
Reference in New Issue