From 849debbe514711f37ba6ccd9f9d55b040e539d8a Mon Sep 17 00:00:00 2001 From: LittleCube Date: Tue, 18 Feb 2025 22:10:28 -0500 Subject: [PATCH] make intro sequence skippable --- patches/title_screen_patches.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 patches/title_screen_patches.c diff --git a/patches/title_screen_patches.c b/patches/title_screen_patches.c new file mode 100644 index 0000000..f8b444f --- /dev/null +++ b/patches/title_screen_patches.c @@ -0,0 +1,31 @@ +#include "patches.h" + +struct Struct_core2_9B180_1; +typedef struct Struct_core2_9B180_1 Struct_core2_9B180_1; +struct struct_core2_9B180_s; + +typedef struct struct_core2_9B180_s{ + s16 unk0; + // u8 pad2[0x2]; + Struct_core2_9B180_1 *unk4; + void (*unk8)(struct struct_core2_9B180_s *); + void (*unkC)(struct struct_core2_9B180_s *); + void (*unk10)(struct struct_core2_9B180_s *); +}Struct_core2_9B180_0; + +extern u8 D_80383330; +extern Struct_core2_9B180_0 D_8036DE00[]; + +int map_get(void); + +RECOMP_PATCH void func_80322490(void) { + Struct_core2_9B180_0 *i_ptr; + + if (D_80383330 != 0) { + for(i_ptr = D_8036DE00; i_ptr != &D_8036DE00[6]; i_ptr++){ + if((i_ptr->unk4 != 0 || (i_ptr->unkC == 0x80322318 && map_get() == 0x1F)) && i_ptr->unkC != NULL){ + i_ptr->unkC(i_ptr); + } + } + } +} \ No newline at end of file