summaryrefslogtreecommitdiff
path: root/include/DynamicLink.h
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2025-10-19 10:30:49 -0700
committerGitHub <noreply@github.com>2025-10-19 20:30:49 +0300
commit850fae1aa304f7703ef973cf2126f246048ca25d (patch)
treef00b1bc2a000fd33dcc10ea08e2d57b8887fac70 /include/DynamicLink.h
parent31c0f94a1052de4cd5cc9c829d41c4389b3fc7b7 (diff)
m_Do_main / f_ap_game / f_op_actor debug work and misc (#2744)
* m_Do_main / f_ap_game debug stuff * revolution sdk compatibility * f_op_actor debug work * rename fopAcM_SetupActor to fopAcM_ct * fix build * fix jp/pal splits
Diffstat (limited to 'include/DynamicLink.h')
-rw-r--r--include/DynamicLink.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/include/DynamicLink.h b/include/DynamicLink.h
index db282a3ee9..21ea5b722f 100644
--- a/include/DynamicLink.h
+++ b/include/DynamicLink.h
@@ -1,7 +1,9 @@
#ifndef DYNAMICLINK_H
#define DYNAMICLINK_H
-#include "dolphin/os.h"
+#include <dolphin/os.h>
+#include "JSystem/JKernel/JKRHeap.h"
+#include "global.h"
class JKRArchive;
class JKRFileCache;
@@ -23,6 +25,8 @@ struct DynamicModuleControlBase {
virtual void dump();
#endif
/* 80262470 */ static void dump();
+ static void dump(char*);
+
/* 802631FC */ virtual void dump2() {};
/* 802631DC */ virtual bool do_load() {return true;};
/* 802631F4 */ virtual BOOL do_load_async() {return true;};
@@ -39,8 +43,23 @@ struct DynamicModuleControlBase {
inline DynamicModuleControlBase* getNextClass() { return mNext; }
bool isLinked() const { return mLinkCount != 0; }
+ #if DEBUG
+ static void resetDoLinkCount() {} // TODO
+ static void dumpTag() {} // TODO
+ #endif
+
static DynamicModuleControlBase* mFirst;
static DynamicModuleControlBase* mLast;
+
+ #if DEBUG
+ static u8 verbose;
+ #endif
+
+ #if PLATFORM_WII || PLATFORM_SHIELD
+ static JKRHeap* getHeap() { return m_heap; }
+
+ static JKRHeap* m_heap;
+ #endif
};
struct DynamicModuleControl : DynamicModuleControlBase {