From ad75b6d5f325b7f71df3040691c110bb7e9cab04 Mon Sep 17 00:00:00 2001 From: gijs Date: Sat, 21 Oct 2023 19:53:42 +0200 Subject: [PATCH] Split `1B530`, remove `nuIdle` definition Move `nuSiCallBackAdd` to `nusicallbackadd.c` Move `nuSiCallBackRemove` to `nusicallbackremove.c` --- include/common.h | 1 - splat.yaml | 3 ++- src/nu/nusicallbackadd.c | 3 +++ src/nu/nusicallbackremove.c | 3 +++ 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 src/nu/nusicallbackadd.c create mode 100644 src/nu/nusicallbackremove.c diff --git a/include/common.h b/include/common.h index 024f517..16ee6f3 100644 --- a/include/common.h +++ b/include/common.h @@ -289,7 +289,6 @@ extern void AddHeap(void* start, u32 length); extern void __some_logging(const char* format, ...); extern void nuBoot(void); -extern void (*nuIdleFunc)(); extern void obMain(void*); diff --git a/splat.yaml b/splat.yaml index d5b6b94..afb4a22 100644 --- a/splat.yaml +++ b/splat.yaml @@ -145,7 +145,8 @@ segments: - [0x1B3A0, c, "_ob_electric_zephyr"] - [0x1B3E0, c, "nu/nugfxthread"] - [0x1B510, c, "_ob_painful_roll"] - - [0x1B530, asm] + - [0x1B530, c, "nu/nusicallbackadd"] + - [0x1B5D0, c, "nu/nusicallbackremove"] - [0x1B650, asm] - [0x1B7A0, asm] - [0x1B940, asm] diff --git a/src/nu/nusicallbackadd.c b/src/nu/nusicallbackadd.c new file mode 100644 index 0000000..a30f9cd --- /dev/null +++ b/src/nu/nusicallbackadd.c @@ -0,0 +1,3 @@ +#include "common.h" + +INCLUDE_ASM(const s32, "nu/nusicallbackadd", nuSiCallBackAdd); diff --git a/src/nu/nusicallbackremove.c b/src/nu/nusicallbackremove.c new file mode 100644 index 0000000..5404f24 --- /dev/null +++ b/src/nu/nusicallbackremove.c @@ -0,0 +1,3 @@ +#include "common.h" + +INCLUDE_ASM(const s32, "nu/nusicallbackremove", nuSiCallBackRemove);