Force user to reset after changing capacity

This commit is contained in:
Zane Kaminski 2020-08-02 21:01:57 -04:00
parent 634db4d3bf
commit ad01fd3185
1 changed files with 15 additions and 9 deletions

24
ram2e.c
View File

@ -332,13 +332,19 @@ int ram2e_main(void)
}
end:
// Show end message
gotoxy(1, 10);
cputs("Press any key to quit.");
gotoxy(1, 11);
cputs("You may also turn off your Apple.");
cgetc();
// Quit
clrscr();
return EXIT_SUCCESS;
if (nvm) { // Show end message for nonvolatile save
gotoxy(1, 10);
cputs("You may now turn off your Apple.");
gotoxy(1, 12);
cputs("You may also reset your Apple for");
gotoxy(1, 13);
cputs("the setting change to take effect.");
} else { // Show end message for volatile save
gotoxy(1, 10);
cputs("Please reset your Apple for");
gotoxy(1, 11);
cputs("the setting change to take effect.");
}
// Don't quit. Instead leave prompt asking user to reset.
while(1) { cgetc(); }
}