From 48240837072618a772381a3c65f4441063ace7f1 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 9 Apr 2023 01:11:06 +0200 Subject: [PATCH] fixup! Add automatic installer and upgrader. --- sysinstall/sysinstall.c | 3 ++- sysinstall/sysupgrade.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sysinstall/sysinstall.c b/sysinstall/sysinstall.c index bbdca857..11f8ba0b 100644 --- a/sysinstall/sysinstall.c +++ b/sysinstall/sysinstall.c @@ -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") ) diff --git a/sysinstall/sysupgrade.c b/sysinstall/sysupgrade.c index a6805517..fd08fc80 100644 --- a/sysinstall/sysupgrade.c +++ b/sysinstall/sysupgrade.c @@ -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") )