From 80fcde7e6155ff64b562faa27ea32aeb83eaae30 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sat, 11 Feb 2023 17:22:17 -0400 Subject: TMainTask: Add, and match `func_80228bbc()` --- context.h | 1 + include/pso/TMainTask.h | 1 + src/pso/TMainTask.cpp | 21 +++++++++++++++++++++ 3 files changed, 23 insertions(+) diff --git a/context.h b/context.h index 36c7384..47b98d0 100644 --- a/context.h +++ b/context.h @@ -317,6 +317,7 @@ public: void unused_render_func(); void render_objects(); void render_ui(); + void func_80228bbc(); void func_80228c44(s32 arg0); void func_80228dbc(); void render_clipout_and_fade(); diff --git a/include/pso/TMainTask.h b/include/pso/TMainTask.h index e889a30..1649275 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_80228bbc(); void func_80228c44(s32 arg0); void func_80228dbc(); void render_clipout_and_fade(); diff --git a/src/pso/TMainTask.cpp b/src/pso/TMainTask.cpp index 8ae626c..6bd7ebe 100644 --- a/src/pso/TMainTask.cpp +++ b/src/pso/TMainTask.cpp @@ -164,6 +164,27 @@ void TMainTask::render() { set_task_flags(0x100); } +void TMainTask::func_80228bbc() { + set_task_flags(0x40); + some_main_task_flag = 0; + set_depth_buffer_settings_3(); + set_depth_buffer_settings_id(1); + save_depth_buffer_settings(); + + tl_02->render_nodes(); + + restore_depth_buffer_settings(); + some_main_task_flag = 1; + + set_depth_buffer_settings_1(); + set_depth_buffer_settings_id(2); + save_depth_buffer_settings(); + + tl_02->render_nodes(); + + restore_depth_buffer_settings(); + clear_task_flags(0x40); +} void TMainTask::func_80228c44(s32 arg0) { set_task_flags(0x20); -- cgit v1.2.3-13-gbd6f