mirror of
https://github.com/garrettsworkshop/GWRAM.SYSTEM.git
synced 2024-06-19 21:29:30 +00:00
Lowered reset count to 25
This commit is contained in:
parent
8a76da3d31
commit
312cba4375
BIN
bin/GWRAM.dbg.po
BIN
bin/GWRAM.dbg.po
Binary file not shown.
BIN
bin/GWRAM.po
BIN
bin/GWRAM.po
Binary file not shown.
6
ram2e.c
6
ram2e.c
|
@ -329,8 +329,8 @@ int ram2e_main(void)
|
||||||
case '5': mask = 0x7F; break;
|
case '5': mask = 0x7F; break;
|
||||||
case 'R': {
|
case 'R': {
|
||||||
reset_count++;
|
reset_count++;
|
||||||
if (reset_count >= 100) {
|
if (reset_count >= 25) {
|
||||||
// Show message about saving.
|
// Show message about resetting.
|
||||||
clrscr(); // Clear screen
|
clrscr(); // Clear screen
|
||||||
gwcputsxy(1, 8, "Resetting RAM2E settings.");
|
gwcputsxy(1, 8, "Resetting RAM2E settings.");
|
||||||
gwcputsxy(1, 9, "Do not turn off your Apple.");
|
gwcputsxy(1, 9, "Do not turn off your Apple.");
|
||||||
|
@ -346,7 +346,7 @@ int ram2e_main(void)
|
||||||
gwcputsxy(1, 8, "RAM2E settings reset successfully.");
|
gwcputsxy(1, 8, "RAM2E settings reset successfully.");
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
} default: continue;
|
} default: reset_count = 0; continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if pressed with apple key. If so, save to nonvolatile memory.
|
// Check if pressed with apple key. If so, save to nonvolatile memory.
|
||||||
|
|
6
ram2gs.c
6
ram2gs.c
|
@ -96,8 +96,8 @@ int ram2gs_main(void)
|
||||||
case '2': en8meg = 1; ram2gs_set8mb(); break;
|
case '2': en8meg = 1; ram2gs_set8mb(); break;
|
||||||
case 'R': {
|
case 'R': {
|
||||||
reset_count++;
|
reset_count++;
|
||||||
if (reset_count >= 100) {
|
if (reset_count >= 25) {
|
||||||
// Show message about saving.
|
// Show message about resetting.
|
||||||
clrscr(); // Clear screen
|
clrscr(); // Clear screen
|
||||||
gwcputsxy(1, 8, "Resetting RAM2GS settings.");
|
gwcputsxy(1, 8, "Resetting RAM2GS settings.");
|
||||||
gwcputsxy(1, 9, "Do not turn off your Apple.");
|
gwcputsxy(1, 9, "Do not turn off your Apple.");
|
||||||
|
@ -113,7 +113,7 @@ int ram2gs_main(void)
|
||||||
gwcputsxy(1, 8, "RAM2GS settings reset successfully.");
|
gwcputsxy(1, 8, "RAM2GS settings reset successfully.");
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
} default: continue;
|
} default: reset_count = 0; continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if pressed with apple key. If so, save to nonvolatile memory.
|
// Check if pressed with apple key. If so, save to nonvolatile memory.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user