1 Commits
v2 ... v3
Author SHA1 Message Date
Luxferre 69c3f46640 added exit guard for nes/gb 2026-01-21 10:23:57 +02:00
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -368,8 +368,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();
+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();