Completado el ciclo para pedir el ID online. Añadido sonido a las notificaciones. Agregado control de versión del fichero de configuración

This commit is contained in:
2022-11-23 16:59:40 +01:00
parent 706ad6f9c0
commit a8b467290f
14 changed files with 95 additions and 130 deletions

View File

@@ -125,8 +125,7 @@ void Logo::checkEventHandler()
break;
default:
section.name = SECTION_PROG_TITLE;
section.subsection = 0;
endSection();
break;
}
}
@@ -269,22 +268,7 @@ void Logo::update()
// Comprueba si ha terminado el logo
if (counter == endLogo + postLogo)
{
if (options->online.jailerID == "")
{
section.name = SECTION_PROG_ENTER_ID;
section.subsection = 0;
}
else if (section.subsection == SUBSECTION_LOGO_TO_INTRO)
{
section.name = SECTION_PROG_INTRO;
section.subsection = 0;
}
else
{
section.name = SECTION_PROG_TITLE;
section.subsection = 0;
}
endSection();
}
}
}
@@ -327,12 +311,18 @@ section_t Logo::run()
// Cambia la paleta
void Logo::switchPalette()
{
if (options->palette == p_zxspectrum)
options->palette = options->palette == p_zxspectrum ? p_zxarne : p_zxspectrum;
}
// Termina la sección
void Logo::endSection()
{
if (options->online.enabled && options->online.jailerID == "")
{
options->palette = p_zxarne;
section.name = SECTION_PROG_ENTER_ID;
}
else
{
options->palette = p_zxspectrum;
section.name = (section.subsection == SUBSECTION_LOGO_TO_INTRO) ? SECTION_PROG_INTRO : SECTION_PROG_TITLE;
}
}