mirror of
https://github.com/zeldaret/ph
synced 2026-06-22 08:15:48 -04:00
Decomp Inventory::ClearPrevEquippedItem
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user