Decomp Inventory::ClearPrevEquippedItem

This commit is contained in:
Aetias
2023-11-13 23:23:03 +01:00
parent 2dcc30f992
commit 4b73ee6f89
5 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -264285,7 +264285,7 @@
.extern func_ov00_020ad0a8
.extern _ZN9Inventory7DestroyEv
.extern func_ov00_020ad0ce
.extern func_ov00_020ad0dc
.extern _ZN9Inventory21ClearPrevEquippedItemEv
.extern func_ov00_020ad0e4
.extern func_ov00_020ad104
.extern func_ov00_020ad160
-9
View File
@@ -3,15 +3,6 @@
.text
.global func_ov00_020ad0dc
thumb_func_start func_ov00_020ad0dc
func_ov00_020ad0dc: ; 0x020ad0dc
mov r1, #0
mvn r1, r1
str r1, [r0, #4]
bx lr
thumb_func_end func_ov00_020ad0dc
.global func_ov00_020ad0e4
thumb_func_start func_ov00_020ad0e4
func_ov00_020ad0e4: ; 0x020ad0e4
+1 -1
View File
@@ -14965,7 +14965,7 @@ _02107ef6:
bl func_ov00_020aef30
ldr r0, _02107f2c ; =gInventory
ldr r0, [r0]
bl func_ov00_020ad0dc
bl _ZN9Inventory21ClearPrevEquippedItemEv
add r0, r4, #0
bl func_ov00_020b8060
mov r0, #4
+3 -1
View File
@@ -5,7 +5,7 @@
typedef u32 EquipItem;
enum EquipItem_ {
EquipItem_None = 0,
EquipItem_None = -1,
EquipItem_Boomerang = 2,
EquipItem_Shovel = 3,
EquipItem_Bomb = 4,
@@ -66,6 +66,8 @@ public:
static void Destroy();
Inventory();
~Inventory();
void ClearPrevEquippedItem();
};
extern Inventory *gInventory;
+7
View File
@@ -12,4 +12,11 @@ void Inventory::Destroy() {
delete gInventory;
gInventory = 0;
}
#pragma interworking on
void Inventory::ClearPrevEquippedItem() {
this->mPrevEquippedItem = EquipItem_None;
}
#pragma interworking off
#pragma thumb off