arreglos en service menu per a emscripten
This commit is contained in:
@@ -642,6 +642,21 @@ void ServiceMenu::setHiddenOptions() {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
// En la versión web no tiene sentido exponer: shaders (build sin shaders),
|
||||
// permitir apagar el sistema (no aplica al navegador) ni salir del juego
|
||||
// (lo gestiona el navegador).
|
||||
for (const auto& caption : {
|
||||
Lang::getText("[SERVICE_MENU] SHADER"),
|
||||
Lang::getText("[SERVICE_MENU] ENABLE_SHUTDOWN"),
|
||||
Lang::getText("[SERVICE_MENU] QUIT")}) {
|
||||
auto* option = getOptionByCaption(caption);
|
||||
if (option != nullptr) {
|
||||
option->setHidden(true);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
updateMenu(); // El menú debe refrescarse si algo se oculta
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user