diff --git a/src/game/game_107fb0.c b/src/game/game_107fb0.c index 29ef116d0..dafe84304 100644 --- a/src/game/game_107fb0.c +++ b/src/game/game_107fb0.c @@ -508,34 +508,16 @@ glabel func0f1080d0 /* f108250: 00000000 */ sll $zero,$zero,0x0 ); -GLOBAL_ASM( -glabel menuhandler00108254 -/* f108254: 24010018 */ addiu $at,$zero,0x18 -/* f108258: afa50004 */ sw $a1,0x4($sp) -/* f10825c: 14810011 */ bne $a0,$at,.L0f1082a4 -/* f108260: afa60008 */ sw $a2,0x8($sp) -/* f108264: 3c0e8007 */ lui $t6,0x8007 -/* f108268: 8dce1448 */ lw $t6,0x1448($t6) -/* f10826c: 3c18800a */ lui $t8,0x800a -/* f108270: 000e78c0 */ sll $t7,$t6,0x3 -/* f108274: 01ee7823 */ subu $t7,$t7,$t6 -/* f108278: 000f7880 */ sll $t7,$t7,0x2 -/* f10827c: 01ee7821 */ addu $t7,$t7,$t6 -/* f108280: 000f78c0 */ sll $t7,$t7,0x3 -/* f108284: 01ee7823 */ subu $t7,$t7,$t6 -/* f108288: 000f7900 */ sll $t7,$t7,0x4 -/* f10828c: 030fc021 */ addu $t8,$t8,$t7 -/* f108290: 8f18ee38 */ lw $t8,-0x11c8($t8) -/* f108294: 57000004 */ bnezl $t8,.L0f1082a8 -/* f108298: 00001025 */ or $v0,$zero,$zero -/* f10829c: 03e00008 */ jr $ra -/* f1082a0: 24020001 */ addiu $v0,$zero,0x1 -.L0f1082a4: -/* f1082a4: 00001025 */ or $v0,$zero,$zero -.L0f1082a8: -/* f1082a8: 03e00008 */ jr $ra -/* f1082ac: 00000000 */ sll $zero,$zero,0x0 -); +s32 menuhandler00108254(u32 operation, struct menu_item *item, s32 *value) +{ + if (operation == MENUOP_CHECKHIDDEN) { + if (g_MenuStack[g_MpPlayerNum].unk940 == 0) { + return true; + } + } + + return 0; +} GLOBAL_ASM( glabel func0f1082b0 diff --git a/src/include/game/game_107fb0.h b/src/include/game/game_107fb0.h index b60dec11c..420b34b4f 100644 --- a/src/include/game/game_107fb0.h +++ b/src/include/game/game_107fb0.h @@ -59,7 +59,7 @@ s32 menudialog0010ba10(u32, u32, u32 *); s32 menudialog0010c804(u32, u32, u32 *); s32 menudialog0010cc08(u32, u32, u32 *); s32 menuhandler00108014(u32, u32, u32 *); -s32 menuhandler00108254(u32, u32, u32 *); +s32 menuhandler00108254(u32 operation, struct menu_item *item, s32 *value); s32 menuhandler001084b8(u32, u32, u32 *); s32 menuhandlerPakErrorTryAgain(u32 operation, struct menu_item *item, s32 *value); s32 menuhandler00108cd0(u32, u32, u32 *);