summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriTNTPiston <zhaoyizhu2000@gmail.com>2021-08-09 16:40:04 -0700
committeriTNTPiston <zhaoyizhu2000@gmail.com>2021-08-09 16:40:04 -0700
commit488f2c3e71af8d443c1fc04d0f03e70e0aa7aefd (patch)
tree14e78c8e78addea09d79b3bc7c6f0430e1a8cc44
parent0f6a9d95b5ab16c22e62291b98f0d66f76cdebd8 (diff)
Implemented DebugFinder
-rw-r--r--data/uking_functions.csv10
-rw-r--r--src/KingSystem/System/CMakeLists.txt2
-rw-r--r--src/KingSystem/System/DebugFinder.cpp14
-rw-r--r--src/KingSystem/System/DebugFinder.h22
4 files changed, 43 insertions, 5 deletions
diff --git a/data/uking_functions.csv b/data/uking_functions.csv
index 6fdd3779..75efdfdc 100644
--- a/data/uking_functions.csv
+++ b/data/uking_functions.csv
@@ -94017,11 +94017,11 @@ Address,Quality,Size,Name
0x000000710124a37c,U,000140,
0x000000710124a408,U,000048,
0x000000710124a438,U,000092,
-0x000000710124a494,U,000100,
-0x000000710124a4f8,U,000108,
-0x000000710124a564,U,000292,DebugFinder::createInstance
-0x000000710124a688,U,000004,nullsub_4722
-0x000000710124a68c,U,000004,j__ZdlPv_1261
+0x000000710124a494,O,000100,_ZN4ksys11DebugFinder18SingletonDisposer_D1Ev
+0x000000710124a4f8,O,000108,_ZN4ksys11DebugFinder18SingletonDisposer_D0Ev
+0x000000710124a564,O,000292,_ZN4ksys11DebugFinder14createInstanceEPN4sead4HeapE
+0x000000710124a688,O,000004,_ZN4ksys11DebugFinder4initEPN4sead4HeapE
+0x000000710124a68c,U,000004,
0x000000710124a690,U,000008,
0x000000710124a698,U,000108,
0x000000710124a704,U,000108,
diff --git a/src/KingSystem/System/CMakeLists.txt b/src/KingSystem/System/CMakeLists.txt
index f3fe4e5b..95afaea7 100644
--- a/src/KingSystem/System/CMakeLists.txt
+++ b/src/KingSystem/System/CMakeLists.txt
@@ -9,6 +9,8 @@ target_sources(uking PRIVATE
CameraEditor.h
CameraMgr.cpp
CameraMgr.h
+ DebugFinder.cpp
+ DebugFinder.h
DebugMessage.h
HavokWorkerMgr.cpp
HavokWorkerMgr.h
diff --git a/src/KingSystem/System/DebugFinder.cpp b/src/KingSystem/System/DebugFinder.cpp
new file mode 100644
index 00000000..d566df2b
--- /dev/null
+++ b/src/KingSystem/System/DebugFinder.cpp
@@ -0,0 +1,14 @@
+#include "KingSystem/System/DebugFinder.h"
+
+namespace ksys {
+
+SEAD_SINGLETON_DISPOSER_IMPL(DebugFinder)
+
+DebugFinder::DebugFinder() = default;
+
+void DebugFinder::init(sead::Heap* heap) {
+
+}
+
+}
+
diff --git a/src/KingSystem/System/DebugFinder.h b/src/KingSystem/System/DebugFinder.h
new file mode 100644
index 00000000..c1b26cf5
--- /dev/null
+++ b/src/KingSystem/System/DebugFinder.h
@@ -0,0 +1,22 @@
+#pragma once
+
+#include <heap/seadDisposer.h>
+#include <prim/seadSafeString.h>
+
+namespace ksys {
+
+class DebugFinder{
+ SEAD_SINGLETON_DISPOSER(DebugFinder)
+ DebugFinder();
+ virtual ~DebugFinder();
+
+public:
+ void init(sead::Heap* heap);
+
+private:
+ sead::FixedSafeString<0x40> unused_1;
+ sead::FixedSafeString<0x100> unused_2;
+ u32 unused_3 = 0;
+};
+
+} // namespace ksys::evt \ No newline at end of file