Commit amb la merda de hui

This commit is contained in:
2024-09-15 19:32:20 +02:00
parent 75f9d3f5cb
commit a00c2284b6
8 changed files with 36 additions and 96 deletions

View File

@@ -211,29 +211,20 @@ void Intro::checkInput()
switch (checkServiceButton(input))
{
case SERVICE_RESET:
{
section->name = SECTION_PROG_LOGO;
screen->showNotification("Reset");
break;
}
case SERVICE_MUTE:
{
const bool value = !options->audio.music.enabled;
options->audio.music.enabled = value;
options->audio.sound.enabled = value;
JA_EnableMusic(value);
JA_EnableSound(value);
const std::string text = value ? "on" : "off";
screen->showNotification("Audio " + text);
options->audio.sound.enabled = options->audio.music.enabled = !options->audio.music.enabled;
JA_EnableMusic(options->audio.music.enabled);
JA_EnableSound(options->audio.sound.enabled);
screen->showNotification("Audio " + boolToOnOff(options->audio.music.enabled));
break;
}
default:
{
break;
}
}
// Comprueba el input para el resto de objetos
screen->checkInput();