added exit guard for nes/gb

This commit is contained in:
Luxferre
2026-01-21 10:23:57 +02:00
parent c9034b3762
commit 69c3f46640
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -393,8 +393,10 @@ s16 game() {
}
if(ch == CH_Q) {
hp = 0;
break;
if(confirm("End game?")) {
hp = 0;
break;
} else print_msg("Go on!");
} else if(ch == CH_INVAL) {
print_msg("Invalid input!");
beep_err();