From 012990335cb26b2815e26e4b031d0a2670563419 Mon Sep 17 00:00:00 2001 From: gijs Date: Sun, 22 Oct 2023 11:53:42 +0200 Subject: [PATCH] Split `nucontpak` files Add `nucontpakopen.c` Add `nucontpakgetfree.c` Add `nucontpakrepairid.c` Add `nucontpakfileopen.c` Add `nucontpakfilereadwrite.c` Add `nucontpakfiledelete.c` Add `nucontpakfilestate.c` --- splat.yaml | 13 +++++++------ src/nu/nucontpakfiledelete.c | 3 +++ src/nu/nucontpakfileopen.c | 3 +++ src/nu/nucontpakfilereadwrite.c | 3 +++ src/nu/nucontpakfilestate.c | 3 +++ src/nu/nucontpakgetfree.c | 3 +++ src/nu/nucontpakopen.c | 3 +++ src/nu/nucontpakrepairid.c | 3 +++ 8 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 src/nu/nucontpakfiledelete.c create mode 100644 src/nu/nucontpakfileopen.c create mode 100644 src/nu/nucontpakfilereadwrite.c create mode 100644 src/nu/nucontpakfilestate.c create mode 100644 src/nu/nucontpakgetfree.c create mode 100644 src/nu/nucontpakopen.c create mode 100644 src/nu/nucontpakrepairid.c diff --git a/splat.yaml b/splat.yaml index 0d0b649..d73e37f 100644 --- a/splat.yaml +++ b/splat.yaml @@ -133,14 +133,15 @@ segments: - [0x1AA60, c, "nu/nucontreadfuncset"] - [0x1AAA0, c, "nu/nucontpakmgr"] - [0x1AD10, asm] - - [0x1AFD0, asm] - - [0x1B030, asm] - - [0x1B070, asm] + - [0x1AFD0, c, "nu/nucontpakopen"] + - [0x1B030, c, "nu/nucontpakgetfree"] + - [0x1B070, c, "nu/nucontpakrepairid"] + - [0x1B0A0, c, "nu/nucontpakfileopen"] - [0x1B160, asm] - [0x1B240, asm] - - [0x1B290, asm] - - [0x1B2E0, asm] - - [0x1B320, asm] + - [0x1B290, c, "nu/nucontpakfilereadwrite"] + - [0x1B2E0, c, "nu/nucontpakfiledelete"] + - [0x1B320, c, "nu/nucontpakfilestate"] - [0x1B360, asm] - [0x1B3A0, c, "_ob_electric_zephyr"] - [0x1B3E0, c, "nu/nugfxthread"] diff --git a/src/nu/nucontpakfiledelete.c b/src/nu/nucontpakfiledelete.c new file mode 100644 index 0000000..3210d07 --- /dev/null +++ b/src/nu/nucontpakfiledelete.c @@ -0,0 +1,3 @@ +#include "common.h" + +INCLUDE_ASM(const s32, "nu/nucontpakfiledelete", nuContPakFileDelete); diff --git a/src/nu/nucontpakfileopen.c b/src/nu/nucontpakfileopen.c new file mode 100644 index 0000000..9b3e15e --- /dev/null +++ b/src/nu/nucontpakfileopen.c @@ -0,0 +1,3 @@ +#include "common.h" + +INCLUDE_ASM(const s32, "nu/nucontpakfileopen", nuContPakFileOpen); diff --git a/src/nu/nucontpakfilereadwrite.c b/src/nu/nucontpakfilereadwrite.c new file mode 100644 index 0000000..4e9723f --- /dev/null +++ b/src/nu/nucontpakfilereadwrite.c @@ -0,0 +1,3 @@ +#include "common.h" + +INCLUDE_ASM(const s32, "nu/nucontpakfilereadwrite", nuContPakFileReadWrite); diff --git a/src/nu/nucontpakfilestate.c b/src/nu/nucontpakfilestate.c new file mode 100644 index 0000000..f9f44cc --- /dev/null +++ b/src/nu/nucontpakfilestate.c @@ -0,0 +1,3 @@ +#include "common.h" + +INCLUDE_ASM(const s32, "nu/nucontpakfilestate", nuContPakFileState); diff --git a/src/nu/nucontpakgetfree.c b/src/nu/nucontpakgetfree.c new file mode 100644 index 0000000..b896476 --- /dev/null +++ b/src/nu/nucontpakgetfree.c @@ -0,0 +1,3 @@ +#include "common.h" + +INCLUDE_ASM(const s32, "nu/nucontpakgetfree", nuContPakGetFree); diff --git a/src/nu/nucontpakopen.c b/src/nu/nucontpakopen.c new file mode 100644 index 0000000..292c050 --- /dev/null +++ b/src/nu/nucontpakopen.c @@ -0,0 +1,3 @@ +#include "common.h" + +INCLUDE_ASM(const s32, "nu/nucontpakopen", nuContPakOpen); diff --git a/src/nu/nucontpakrepairid.c b/src/nu/nucontpakrepairid.c new file mode 100644 index 0000000..e516928 --- /dev/null +++ b/src/nu/nucontpakrepairid.c @@ -0,0 +1,3 @@ +#include "common.h" + +INCLUDE_ASM(const s32, "nu/nucontpakrepairid", nuContPakRepairId);