From ed7e4c2ffd7bfa1a2a66f5b54e5547f855350c66 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sat, 11 Feb 2023 15:38:30 -0400 Subject: TMainTask: Add, and match `func_80228dbc()` --- context.h | 1 + include/pso/TMainTask.h | 1 + src/pso/TMainTask.cpp | 13 +++++++++++++ 3 files changed, 15 insertions(+) diff --git a/context.h b/context.h index 200bd20..8a6bdcd 100644 --- a/context.h +++ b/context.h @@ -317,6 +317,7 @@ public: void unused_render_func(); void render_objects(); void render_ui(); + void func_80228dbc(); void render_clipout_and_fade(); void init_main_task(); diff --git a/include/pso/TMainTask.h b/include/pso/TMainTask.h index 6de10f7..31e8e79 100644 --- a/include/pso/TMainTask.h +++ b/include/pso/TMainTask.h @@ -47,6 +47,7 @@ public: void unused_render_func(); void render_objects(); void render_ui(); + void func_80228dbc(); void render_clipout_and_fade(); void init_main_task(); diff --git a/src/pso/TMainTask.cpp b/src/pso/TMainTask.cpp index 91e4d38..71a1393 100644 --- a/src/pso/TMainTask.cpp +++ b/src/pso/TMainTask.cpp @@ -164,6 +164,19 @@ void TMainTask::render() { set_task_flags(0x100); } +void TMainTask::func_80228dbc() { + set_task_flags(0x10); + some_main_task_flag = 0; + render_geometry(); + some_main_task_flag = 1; + render_effects(); + render_objects(); + some_main_task_flag = 0; + render_particle_effects(); + unused_render_func(); + clear_task_flags(0x10); +} + void TMainTask::render_clipout_and_fade() { u32 some_id; set_task_flags(2); -- cgit v1.2.3-13-gbd6f