diff --git a/src/game/game_102240.c b/src/game/game_102240.c index 8a14af058..e68166773 100644 --- a/src/game/game_102240.c +++ b/src/game/game_102240.c @@ -3822,24 +3822,14 @@ glabel func0f1057ec /* f105828: 00000000 */ sll $zero,$zero,0x0 ); -GLOBAL_ASM( -glabel menuhandlerChangeAgent -/* f10582c: 27bdffe8 */ addiu $sp,$sp,-24 -/* f105830: 24010006 */ addiu $at,$zero,0x6 -/* f105834: afbf0014 */ sw $ra,0x14($sp) -/* f105838: afa5001c */ sw $a1,0x1c($sp) -/* f10583c: 14810004 */ bne $a0,$at,.L0f105850 -/* f105840: afa60020 */ sw $a2,0x20($sp) -/* f105844: 00002025 */ or $a0,$zero,$zero -/* f105848: 0fc3e083 */ jal func0f0f820c -/* f10584c: 2405fff9 */ addiu $a1,$zero,-7 -.L0f105850: -/* f105850: 8fbf0014 */ lw $ra,0x14($sp) -/* f105854: 27bd0018 */ addiu $sp,$sp,0x18 -/* f105858: 00001025 */ or $v0,$zero,$zero -/* f10585c: 03e00008 */ jr $ra -/* f105860: 00000000 */ sll $zero,$zero,0x0 -); +s32 menuhandlerChangeAgent(s32 operation, struct menu_item *item, s32 *value) +{ + if (operation == MENUOP_SET) { + func0f0f820c(0, -7); + } + + return 0; +} GLOBAL_ASM( glabel func0f105864 diff --git a/src/include/game/game_0f09f0.h b/src/include/game/game_0f09f0.h index 0a251812d..8a86d7d93 100644 --- a/src/include/game/game_0f09f0.h +++ b/src/include/game/game_0f09f0.h @@ -51,7 +51,7 @@ u32 func0f0f7728(void); u32 func0f0f7e98(void); u32 func0f0f8040(void); u32 func0f0f8120(void); -u32 func0f0f820c(void); +void func0f0f820c(s32 arg0, s32 arg1); u32 func0f0f82a8(void); u32 func0f0f8300(void); u32 func0f0f8330(void); diff --git a/src/include/game/game_102240.h b/src/include/game/game_102240.h index cf13efec3..0f4968fb0 100644 --- a/src/include/game/game_102240.h +++ b/src/include/game/game_102240.h @@ -53,7 +53,7 @@ s32 menuhandlerAmmoOnScreen(u32 operation, struct menu_item *item, bool *enable) s32 menuhandlerAntiPlayer(u32 operation, struct menu_item *item, bool *enable); s32 menuhandlerAntiRadar(u32 operation, struct menu_item *item, bool *enable); s32 menuhandlerAutoAim(u32 operation, struct menu_item *item, bool *enable); -s32 menuhandlerChangeAgent(u32 operation, struct menu_item *item, bool *enable); +s32 menuhandlerChangeAgent(s32 operation, struct menu_item *item, s32 *value); s32 menuhandlerCoopBuddy(u32 operation, struct menu_item *item, bool *enable); s32 menuhandlerCoopFriendlyFire(u32 operation, struct menu_item *item, bool *enable); s32 menuhandlerCoopRadar(u32 operation, struct menu_item *item, bool *enable);