arreglos en service menu per a emscripten
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user