mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-03 20:14:28 +02:00
config: only overwrite skip config prompt if it was displayed
This allows to boot with SWITCHES=/F without any lone CRs.
This commit is contained in:
parent
314c8b627b
commit
f7947771cb
@ -1085,14 +1085,15 @@ STATIC BOOL SkipLine(char *pLine)
|
|||||||
{
|
{
|
||||||
short key;
|
short key;
|
||||||
COUNT i;
|
COUNT i;
|
||||||
|
signed char originalskipconfigseconds = InitKernelConfig.SkipConfigSeconds;
|
||||||
|
|
||||||
if (InitKernelConfig.SkipConfigSeconds >= 0)
|
if (originalskipconfigseconds >= 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (InitKernelConfig.SkipConfigSeconds > 0)
|
if (originalskipconfigseconds > 0)
|
||||||
printf("Press F8 to trace or F5 to skip CONFIG.SYS/AUTOEXEC.BAT");
|
printf("Press F8 to trace or F5 to skip CONFIG.SYS/AUTOEXEC.BAT");
|
||||||
|
|
||||||
key = GetBiosKey(InitKernelConfig.SkipConfigSeconds); /* wait 2 seconds */
|
key = GetBiosKey(originalskipconfigseconds); /* wait 2 seconds */
|
||||||
|
|
||||||
InitKernelConfig.SkipConfigSeconds = -1;
|
InitKernelConfig.SkipConfigSeconds = -1;
|
||||||
|
|
||||||
@ -1105,6 +1106,7 @@ STATIC BOOL SkipLine(char *pLine)
|
|||||||
singleStep = TRUE;
|
singleStep = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (originalskipconfigseconds > 0)
|
||||||
printf("\r%79s\r", ""); /* clear line */
|
printf("\r%79s\r", ""); /* clear line */
|
||||||
|
|
||||||
if (SkipAllConfig)
|
if (SkipAllConfig)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user