From 92a8e55fdd348a88a365eb389181d8e29da6dad9 Mon Sep 17 00:00:00 2001 From: Dennis Date: Sat, 10 Jul 2021 18:23:20 +0200 Subject: Decompiled some item related functions (#42) * decompile sub_8091290 * decompile sub_80912c8 * rename functions / struct field * more names * decompile 80913A0 * decompile GetItemMove * decompile sub_80913E0 * rename function * decompile CanSellItem function * rename inventory struct * add some item check functions * fix renaming stuff * this file shouldnt have been here * forgot merge conflict * decompile more item functions * rename some stuff * fix HM/TM naming * Update src/code_801AFA4.c Use enum value for USED_TM * Fix incorrect value Co-authored-by: Seth Barberee --- asm/other_menus.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'asm/other_menus.s') diff --git a/asm/other_menus.s b/asm/other_menus.s index 6cefea7..676ba9a 100644 --- a/asm/other_menus.s +++ b/asm/other_menus.s @@ -1299,7 +1299,7 @@ _08037E5A: ldrb r0, [r4] b _08037E76 .align 2, 0 -_08037E6C: .4byte gUnknown_203B460 +_08037E6C: .4byte gTeamInventory_203B460 _08037E70: ldr r0, _08037E8C ldr r1, [r0] @@ -1316,7 +1316,7 @@ _08037E76: pop {r0} bx r0 .align 2, 0 -_08037E8C: .4byte gUnknown_203B460 +_08037E8C: .4byte gTeamInventory_203B460 thumb_func_end sub_8037E38 thumb_func_start sub_8037E90 @@ -1543,7 +1543,7 @@ _08038036: ldrb r0, [r4] b _08038052 .align 2, 0 -_08038048: .4byte gUnknown_203B460 +_08038048: .4byte gTeamInventory_203B460 _0803804C: ldr r0, _08038070 ldr r1, [r0] @@ -1566,7 +1566,7 @@ _08038068: pop {r1} bx r1 .align 2, 0 -_08038070: .4byte gUnknown_203B460 +_08038070: .4byte gTeamInventory_203B460 _08038074: .4byte 0x000003e7 thumb_func_end sub_8038014 -- cgit v1.2.3