diff --git a/src/menu.c b/src/menu.c index 038413f7..f4590bc2 100644 --- a/src/menu.c +++ b/src/menu.c @@ -19,6 +19,7 @@ #include "object_models.h" #include "printf.h" #include "textures_sprites.h" +#include "thread30.h" /** * @file Contains all the code used for every menu in the game. diff --git a/src/menu.h b/src/menu.h index 4cf1f908..4698d877 100644 --- a/src/menu.h +++ b/src/menu.h @@ -651,7 +651,6 @@ void render_textured_rectangle(Gfx **dlist, DrawTexture *arg1, s32 arg2, s32 arg3, u8 red, u8 green, u8 blue, u8 alpha); // Non Matching src/unknown_078050.c void load_level_for_menu(s32 levelId, s32 numberOfPlayers, s32 cutsceneId); //src/unknown_06B2B0.c void func_80078D00(Gfx**, void *element, s32, s32, f32, f32, u32, s32); //Non Matching src/unknown_078050.c -s32 get_thread30_level_id_to_load(void); //src/thread30.c void func_8001D5E0(f32 arg0, f32 arg1, f32 arg2); //unknown_00BC20 void gParticlePtrList_addObject(Object *object); //src/unknown_00BC20.c s32 get_random_number_from_range(s32, s32); // Non Matching src/unknown_070110.c diff --git a/src/thread30.c b/src/thread30.c index 759a1c85..28e52bf2 100644 --- a/src/thread30.c +++ b/src/thread30.c @@ -1,7 +1,7 @@ /* The comment below is needed for this file to be picked up by generate_ld */ /* RAM_POS: 0x800C7350 */ -#include "types.h" +#include "thread30.h" #include "macros.h" #include "libultra_internal.h" @@ -31,8 +31,6 @@ extern void *gThread30Stack; /*****************************/ -void thread30(void *arg); - /** * Initalizes and starts thread30() */ diff --git a/src/thread30.h b/src/thread30.h new file mode 100644 index 00000000..08ad1a39 --- /dev/null +++ b/src/thread30.h @@ -0,0 +1,14 @@ +#ifndef _THREAD30_H_ +#define _THREAD30_H_ + +#include "types.h" + +void create_and_start_thread30(void); +void stop_thread30(void); +s32 get_thread30_level_id_to_load(void); +void tick_thread30(void); +s32 get_thread30_load_delay(void); +s32 set_level_to_load_in_background(s32 levelId, s32 cutsceneId); +void thread30(void *arg); + +#endif \ No newline at end of file diff --git a/src/unknown_06B2B0.c b/src/unknown_06B2B0.c index 82171aa5..76fea608 100644 --- a/src/unknown_06B2B0.c +++ b/src/unknown_06B2B0.c @@ -17,6 +17,7 @@ #include "gzip.h" #include "printf.h" #include "thread0_epc.h" +#include "thread30.h" /************ .rodata ************/