From d4bb3109c76e03cb81548d2d5a5c21f6f6f5187d Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Thu, 5 Jun 2025 14:20:39 +0200 Subject: [PATCH] ServiceMenu: ja es funcional el menu de system --- source/service_menu.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/source/service_menu.cpp b/source/service_menu.cpp index 418c4c8..68e4cf2 100644 --- a/source/service_menu.cpp +++ b/source/service_menu.cpp @@ -6,6 +6,7 @@ #include "text.h" #include "resource.h" #include "options.h" +#include "section.h" // Para Name, name, Options, options, AttractMode // Singleton ServiceMenu *ServiceMenu::instance_ = nullptr; @@ -169,6 +170,28 @@ void ServiceMenu::acceptSelection() updateMenu(current_settings_group_); selected_ = 0; } + + else if (display_options_.at(selected_).behavior == OptionBehavior::SELECT) + { + if (display_options_.at(selected_).caption == "RESET") + { + section::name = section::Name::INIT; + toggle(); + return; + } + else if (display_options_.at(selected_).caption == "QUIT") + { + section::name = section::Name::QUIT; + section::options = section::Options::QUIT_WITH_KEYBOARD; + return; + } + else if (display_options_.at(selected_).caption == "SHUTDOWN") + { + section::name = section::Name::QUIT; + section::options = section::Options::QUIT_WITH_CONTROLLER; + return; + } + } } void ServiceMenu::moveBack()