summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAetias <aetias@outlook.com>2025-01-24 21:29:43 +0100
committerAetias <aetias@outlook.com>2025-01-24 21:29:43 +0100
commitd6021854d0f8de4c11059aec7bb086d00b8fba40 (patch)
tree4443ba27e868ad00e0627bf7bfda406f0d3aed3e /src
parent1d4fc368c29d6ec3940fff2e8e56364827e45b62 (diff)
Move ov000 function names from Ghidra
Diffstat (limited to 'src')
-rw-r--r--src/00_Core/DTCM/UnkStruct_027e103c.cpp82
-rw-r--r--src/00_Core/Player/LinkStateItem.cpp11
2 files changed, 87 insertions, 6 deletions
diff --git a/src/00_Core/DTCM/UnkStruct_027e103c.cpp b/src/00_Core/DTCM/UnkStruct_027e103c.cpp
new file mode 100644
index 00000000..53f72d35
--- /dev/null
+++ b/src/00_Core/DTCM/UnkStruct_027e103c.cpp
@@ -0,0 +1,82 @@
+#include "DTCM/UnkStruct_027e103c.hpp"
+
+void *UnkStruct_027e103c::func_ov000_020cef9c() {}
+unk32 UnkStruct_027e103c::func_ov000_020cefbc() {}
+unk32 UnkStruct_027e103c::func_ov000_020cefdc() {}
+unk32 UnkStruct_027e103c::func_ov000_020ceffc() {}
+unk32 UnkStruct_027e103c::func_ov000_020cf01c() {}
+unk32 UnkStruct_027e103c::func_ov000_020cf03c() {}
+unk32 UnkStruct_027e103c::func_ov000_020cf05c() {}
+unk32 UnkStruct_027e103c::func_ov000_020cf07c() {}
+unk32 UnkStruct_027e103c::func_ov000_020cf09c() {}
+unk32 UnkStruct_027e103c::func_ov000_020cf0bc() {}
+unk32 UnkStruct_027e103c::func_ov000_020cf0dc() {}
+unk32 UnkStruct_027e103c::func_ov000_020cf0fc() {}
+unk32 UnkStruct_027e103c::func_ov000_020cf11c() {}
+void UnkStruct_027e103c::func_ov000_020cf13c(s32 param1) {}
+void UnkStruct_027e103c::func_ov000_020cf1b8() {}
+void UnkStruct_027e103c::func_ov000_020cf1d4(unk32 param1) {}
+void UnkStruct_027e103c::func_ov000_020cf20c() {}
+void UnkStruct_027e103c::func_ov000_020cf224(unk32 param1) {}
+void UnkStruct_027e103c::func_ov000_020cf238(unk32 param1, unk32 param2) {}
+bool UnkStruct_027e103c::func_ov000_020cf270(u16 param1) {}
+void UnkStruct_027e103c::func_ov000_020cf284(u16 param1, s32 param2) {}
+void UnkStruct_027e103c::func_ov000_020cf2a0(u32 param1) {}
+void UnkStruct_027e103c::func_ov000_020cf2b8() {}
+void UnkStruct_027e103c::func_ov000_020cf2d8() {}
+void UnkStruct_027e103c::func_ov000_020cf2f8() {}
+void UnkStruct_027e103c::func_ov000_020cf330() {}
+void UnkStruct_027e103c::func_ov000_020cf348() {}
+s32 UnkStruct_027e103c::func_ov000_020cf374(bool param1) {}
+void UnkStruct_027e103c::func_ov000_020cf384() {}
+void UnkStruct_027e103c::func_ov000_020cf398() {}
+void UnkStruct_027e103c::func_ov000_020cf3b8() {}
+void UnkStruct_027e103c::func_ov000_020cf3c8() {}
+void UnkStruct_027e103c::func_ov000_020cf3dc() {}
+void UnkStruct_027e103c::func_ov000_020cf3f0() {}
+void UnkStruct_027e103c::func_ov000_020cf404() {}
+void UnkStruct_027e103c::func_ov000_020cf414() {}
+void UnkStruct_027e103c::func_ov000_020cf42c() {}
+bool UnkStruct_027e103c::func_ov000_020cf444() {}
+bool UnkStruct_027e103c::func_ov000_020cf488() {}
+bool UnkStruct_027e103c::func_ov000_020cf4bc() {}
+bool UnkStruct_027e103c::func_ov000_020cf4d8() {}
+bool UnkStruct_027e103c::func_ov000_020cf4f4() {}
+bool UnkStruct_027e103c::func_ov000_020cf518() {}
+bool UnkStruct_027e103c::func_ov000_020cf534() {}
+bool UnkStruct_027e103c::func_ov000_020cf550() {}
+bool UnkStruct_027e103c::func_ov000_020cf678() {}
+bool UnkStruct_027e103c::func_ov000_020cf750() {}
+bool UnkStruct_027e103c::func_ov000_020cf7c4() {}
+void UnkStruct_027e103c::func_ov000_020cf7e8() {}
+u32 UnkStruct_027e103c::func_ov000_020cf864(u32 param1) {}
+bool UnkStruct_027e103c::func_ov000_020cf8fc(u32 param1) {}
+bool UnkStruct_027e103c::func_ov000_020cf948() {}
+void UnkStruct_027e103c::func_ov000_020cf9dc(s32 param1, s32 param2) {}
+void UnkStruct_027e103c::func_ov000_020cfa24(s32 param1, s32 param2) {}
+unk8 UnkStruct_027e103c::func_ov000_020cfa64() {}
+void UnkStruct_027e103c::func_ov000_020cfa70(s32 param1, s32 param2) {}
+unk8 UnkStruct_027e103c::func_ov000_020cfab0() {}
+void UnkStruct_027e103c::func_ov000_020cfabc(s32 param1, s32 param2) {}
+void UnkStruct_027e103c::func_ov000_020cfae8(s32 param1, s32 param2) {}
+void UnkStruct_027e103c::func_ov000_020cfb20(unk32 param1) {}
+void UnkStruct_027e103c::func_ov000_020cfb38() {}
+void UnkStruct_027e103c::func_ov000_020cfb48() {}
+void UnkStruct_027e103c::func_ov000_020cfb58() {}
+void UnkStruct_027e103c::func_ov000_020cfb68() {}
+void UnkStruct_027e103c::func_ov000_020cfb84() {}
+void UnkStruct_027e103c::func_ov000_020cfb94() {}
+unk32 UnkStruct_027e103c::func_ov000_020cfbb0() {}
+void UnkStruct_027e103c::func_ov000_020cfbd8(unk8 param1) {}
+void UnkStruct_027e103c::func_ov000_020cfbf0(unk32 param1, unk32 param2, unk32 param3) {}
+void UnkStruct_027e103c::func_ov000_020cfc20() {}
+void UnkStruct_027e103c::func_ov000_020cfc44(unk32 param1) {}
+void UnkStruct_027e103c::func_ov000_020cfc70(unk32 param1) {}
+void UnkStruct_027e103c::func_ov000_020cfc9c(unk32 param1, unk32 param2) {}
+void UnkStruct_027e103c::func_ov000_020cfcec() {}
+bool UnkStruct_027e103c::func_ov000_020cfcf8() {}
+void UnkStruct_027e103c::func_ov000_020cfde4(unk32 param1) {}
+void UnkStruct_027e103c::func_ov000_020cfe10(unk8 param1) {}
+void UnkStruct_027e103c::func_ov000_020cfe40(unk8 param1, unk32 param2) {}
+void UnkStruct_027e103c::func_ov000_020cfe74(unk32 param1, unk32 param2) {}
+unk32 UnkStruct_027e103c::func_ov000_020cfea8() {} \ No newline at end of file
diff --git a/src/00_Core/Player/LinkStateItem.cpp b/src/00_Core/Player/LinkStateItem.cpp
index 5cbccd85..eb4ad1ed 100644
--- a/src/00_Core/Player/LinkStateItem.cpp
+++ b/src/00_Core/Player/LinkStateItem.cpp
@@ -1,4 +1,5 @@
#include "Player/LinkStateItem.hpp"
+#include "DTCM/UnkStruct_027e103c.hpp"
#include "Item/ItemManager.hpp"
#include "Player/EquipBomb.hpp"
#include "Player/EquipHammer.hpp"
@@ -7,13 +8,11 @@
#include "Player/PlayerControl.hpp"
#include "Save/AdventureFlags.hpp"
-extern unk32 func_ov000_020cf01c(s32 *param1);
extern void func_ov000_020cf9dc(s32 param1, s32 param2, s32 param3);
extern void func_ov014_0213ec64(s32 param1);
extern void func_ov014_0211fd04(s32 *param1);
extern void func_ov000_020b7e6c(s32 *param1);
-extern s32 *data_027e103c;
extern s32 *data_027e1098;
THUMB void LinkStateItem::vfunc_00() {}
@@ -39,7 +38,7 @@ ARM void LinkStateItem::OnStateLeave(s32 param1) {
switch (this->mEquipId) {
case ItemFlag_BombchuBag:
- iVar3 = func_ov000_020cf01c(data_027e103c);
+ iVar3 = data_027e103c->func_ov000_020cf01c();
if (*(u8 *) (iVar3 + 0xe0) == '\0') {
func_ov014_0213ec64((s32) GetEquipBombchu());
}
@@ -54,9 +53,9 @@ ARM void LinkStateItem::OnStateLeave(s32 param1) {
case ItemFlag_Hammer: EquipHammer::StopUsing(this); break;
case ItemFlag_PotionA:
case ItemFlag_PotionB:
- iVar3 = (int) (data_027e103c);
- *(unk8 *) ((s16 *) data_027e103c + 0x15) = 0;
- func_ov000_020cf9dc(iVar3, 0, 0);
+ UnkStruct_027e103c *pData_027e103c = data_027e103c;
+ pData_027e103c->mUnk_2a = 0;
+ pData_027e103c->func_ov000_020cf9dc(0, 0);
break;
case ItemFlag_Shovel: EquipScoop::StopUsing(this); break;
}