From bbdb633c033629c058e10266e69daa02c815acb1 Mon Sep 17 00:00:00 2001 From: David Benepe Date: Sat, 24 Sep 2022 15:11:47 -0400 Subject: [PATCH] Renamed decompiled functions. --- src/game.c | 2 +- src/unknown_078050.c | 9 ++++----- src/unknown_078050.h | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/game.c b/src/game.c index cc11a74d..c257fdef 100644 --- a/src/game.c +++ b/src/game.c @@ -906,7 +906,7 @@ void main_game_loop(void) { set_rsp_segment(&gCurrDisplayList, 4, (s32)gVideoCurrFramebuffer - 0x500); } if (D_800DD3F0 == 0) { - setupOSTasks(gDisplayLists[gSPTaskNum], gCurrDisplayList, 0); + setup_ostask_xbus(gDisplayLists[gSPTaskNum], gCurrDisplayList, 0); gSPTaskNum += 1; gSPTaskNum &= 1; } diff --git a/src/unknown_078050.c b/src/unknown_078050.c index 8c55dcc6..78f36091 100644 --- a/src/unknown_078050.c +++ b/src/unknown_078050.c @@ -175,7 +175,7 @@ OSMesgQueue *osScInterruptQ; /*******************************/ -s32 setupOSTasks(Gfx* arg0, Gfx* arg1, s32 arg2) { +s32 setup_ostask_xbus(Gfx* arg0, Gfx* arg1, s32 arg2) { DKR_OSTask *dkrtask; D_800DE4DC = 1; @@ -214,7 +214,7 @@ s32 setupOSTasks(Gfx* arg0, Gfx* arg1, s32 arg2) { return 0; } -void func_800775B0(Gfx* arg0, Gfx* arg1, s32 arg2) { +void setup_ostask_xbus_2(Gfx* arg0, Gfx* arg1, s32 arg2) { DKR_OSTask *dkrtask; s32 *sp20; @@ -260,7 +260,7 @@ void func_800775B0(Gfx* arg0, Gfx* arg1, s32 arg2) { } } -void func_80077734(Gfx* arg0, Gfx* arg1, s32 arg2) { +void setup_ostask_fifo(Gfx* arg0, Gfx* arg1, s32 arg2) { DKR_OSTask *dkrtask; s32 *sp20; @@ -284,7 +284,6 @@ void func_80077734(Gfx* arg0, Gfx* arg1, s32 arg2) { dkrtask->task.dram_stack_size = 0x400; dkrtask->task.output_buff = gGfxSPTaskYieldBuffer; dkrtask->task.output_buff_size = gGfxSPTaskYieldBuffer + YIELD_BUFFER_SIZE; - dkrtask->task.yield_data_ptr = D_801271B0; dkrtask->task.yield_data_size = 0xA00; dkrtask->unk0 = 0; @@ -309,7 +308,7 @@ void func_80077734(Gfx* arg0, Gfx* arg1, s32 arg2) { } } -void func_800778C8(Gfx* arg0, Gfx* arg1, s32 arg2) { +void setup_ostask_fifo_2(Gfx* arg0, Gfx* arg1, s32 arg2) { DKR_OSTask *dkrtask; s32 *sp20; diff --git a/src/unknown_078050.h b/src/unknown_078050.h index c53d6133..53222154 100644 --- a/src/unknown_078050.h +++ b/src/unknown_078050.h @@ -70,6 +70,6 @@ void func_800787F0(void); void render_background(Gfx **dlist, s32 *arg1, s32 arg2); void render_textured_rectangle(Gfx **dlist, DrawTexture *arg1, s32 xPos, s32 yPos, u8 red, u8 green, u8 blue, u8 alpha); void render_texture_rectangle_scaled(Gfx **dlist, DrawTexture *element, f32 x, f32 y, f32 x_scale, f32 y_scale, u32 color, s32 flip); -s32 setupOSTasks(Gfx *, Gfx *, s32 arg2); // Not 100% sure about these types, but it matches what main_game_loop is sending. +s32 setup_ostask_xbus(Gfx *, Gfx *, s32 arg2); // Not 100% sure about these types, but it matches what main_game_loop is sending. #endif