summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-02-11 15:38:30 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-02-11 15:38:30 -0400
commited7e4c2ffd7bfa1a2a66f5b54e5547f855350c66 (patch)
treefc02480e6fc50f32484f1c81f86c9169481a8cae
parent136656fb687eba0575c91a5ca76f5b00fac1015c (diff)
TMainTask: Add, and match `func_80228dbc()`
-rw-r--r--context.h1
-rw-r--r--include/pso/TMainTask.h1
-rw-r--r--src/pso/TMainTask.cpp13
3 files changed, 15 insertions, 0 deletions
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);