From d3f8360be21c0c70230d2fcfd5f4d6bd8d5657f9 Mon Sep 17 00:00:00 2001 From: gijs Date: Fri, 20 Oct 2023 17:25:02 +0200 Subject: [PATCH] Move `nuGfxTask` functions to it's own C file --- splat.yaml | 1 + src/_ob_past_brick.c | 8 +------- src/nu/nugfxtaskmgr.c | 7 +++++++ 3 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 src/nu/nugfxtaskmgr.c diff --git a/splat.yaml b/splat.yaml index 44fa78b..d5dd73e 100644 --- a/splat.yaml +++ b/splat.yaml @@ -113,6 +113,7 @@ segments: - [0x18F30, asm] - [0x18F80, asm] - [0x19050, c, "_ob_past_brick"] + - [0x19940, c, "nu/nugfxtaskmgr"] - [0x19D90, c, "_ob_thoughtless_van"] - [0x19DD0, c, "_ob_questionable_glass"] - [0x19E10, asm] diff --git a/src/_ob_past_brick.c b/src/_ob_past_brick.c index edb9bda..2f0df11 100644 --- a/src/_ob_past_brick.c +++ b/src/_ob_past_brick.c @@ -171,10 +171,4 @@ void nuScSetFrameBufferNum(u8 frameBufferNum) { s32 nuScGetFrameRate() { return nusched.frameRate; -} - -INCLUDE_ASM(const s32, "_ob_past_brick", nuGfxTaskMgr); - -INCLUDE_ASM(const s32, "_ob_past_brick", nuGfxTaskMgrInit); - -INCLUDE_ASM(const s32, "_ob_past_brick", nuGfxTaskStart); \ No newline at end of file +} \ No newline at end of file diff --git a/src/nu/nugfxtaskmgr.c b/src/nu/nugfxtaskmgr.c new file mode 100644 index 0000000..268c7a4 --- /dev/null +++ b/src/nu/nugfxtaskmgr.c @@ -0,0 +1,7 @@ +#include "common.h" + +INCLUDE_ASM(const s32, "nu/nugfxtaskmgr", nuGfxTaskMgr); + +INCLUDE_ASM(const s32, "nu/nugfxtaskmgr", nuGfxTaskMgrInit); + +INCLUDE_ASM(const s32, "nu/nugfxtaskmgr", nuGfxTaskStart);