arreglos en service menu per a emscripten

This commit is contained in:
2026-04-14 19:08:45 +02:00
parent 8706b2c7fb
commit 25a36d5064
5 changed files with 58 additions and 17 deletions

View File

@@ -21,6 +21,10 @@
namespace GlobalInputs {
// Termina
void quit() {
#ifdef __EMSCRIPTEN__
// En la versión web no se permite salir: el navegador gestiona el cierre.
return;
#else
const std::string CODE = "QUIT";
if (Notifier::get()->checkCode(CODE)) {
// Si la notificación de salir está activa, cambia de sección
@@ -30,6 +34,7 @@ namespace GlobalInputs {
// Si la notificación de salir no está activa, muestra la notificación
Notifier::get()->show({Lang::getText("[NOTIFICATIONS] 01"), std::string()}, -1, CODE);
}
#endif
}
// Reinicia