Refactor Menus to reduce code

This commit is contained in:
Lorenzooone
2025-04-30 19:09:25 +02:00
parent 405bba1cb8
commit d93fd2edb2
6 changed files with 772 additions and 962 deletions

View File

@@ -297,6 +297,7 @@ void WindowScreen::draw(double frame_time, VideoOutputData* out_buf) {
}
this->last_interleaved_3d = this->display_data->interleaved_3d;
this->loaded_menu = this->curr_menu;
this->loaded_menu_ptr = this->curr_menu_ptr;
loaded_operations = future_operations;
if(this->loaded_operations.call_create) {
this->last_draw_time = std::chrono::high_resolution_clock::now();