fixup! Add automatic installer and upgrader.

This commit is contained in:
Jonas 'Sortie' Termansen 2023-04-09 01:11:06 +02:00
parent 51d32de7c5
commit 4824083707
2 changed files with 4 additions and 2 deletions

View File

@ -651,7 +651,8 @@ int main(void)
while ( true )
{
prompt(input, sizeof(input), "videomode",
"Select a default display resolution? (yes/no)", def);
"Select display resolution? "
"(yes/no/WIDTHxHEIGHTxBPP)", def);
unsigned int xres, yres, bpp;
bool set = sscanf(input, "%ux%ux%u", &xres, &yres, &bpp) == 3;
if ( !strcasecmp(input, "no") )

View File

@ -536,7 +536,8 @@ int main(void)
while ( true )
{
prompt(input, sizeof(input), "videomode",
"Select display resolution? (yes/no)", def);
"Select display resolution? "
"(yes/no/WIDTHxHEIGHTxBPP)", def);
unsigned int xres, yres, bpp;
bool set = sscanf(input, "%ux%ux%u", &xres, &yres, &bpp) == 3;
if ( !set && strcasecmp(input, "no") && strcasecmp(input, "yes") )