From c1d084c70d3fa63eb787b57c5c6c3f511c95a357 Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 16 Jan 2004 02:28:10 +0000 Subject: Added options to toggle individual breakpoints --- src/main.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index a79464c..587e657 100644 --- a/src/main.c +++ b/src/main.c @@ -36,6 +36,7 @@ static const char id[]="$Id$"; #include "memmenu.h" #include "config.h" #include "exit.h" +#include "util.h" /* ---------------------------------------- MACROS @@ -102,7 +103,7 @@ int main(int argc, char *argv[]) TODO: Proper switch handling */ if (argc>1 && strcmp(argv[1],"-m")==0) - MemoryMenu(z80); + quit=MemoryMenu(z80); while(!quit) { @@ -129,16 +130,16 @@ int main(int argc, char *argv[]) if ((brk=Break())) { GUIMessage(eMessageBox,"BREAKPOINT","%s",brk); - MemoryMenu(z80); + quit=MemoryMenu(z80); } - while((e=GFXGetKey())) + while(!quit && (e=GFXGetKey())) { switch (e->key.keysym.sym) { case SDLK_ESCAPE: if (e->key.state==SDL_PRESSED) - quit=TRUE; + quit=GUIMessage(eYesNoBox,"QUIT","Sure?"); break; case SDLK_F1: @@ -214,7 +215,8 @@ int main(int argc, char *argv[]) case SDLK_F11: if (e->key.state==SDL_PRESSED) - MemoryMenu(z80); + quit=MemoryMenu(z80); + Debug("quit=%d\n"); break; case SDLK_F12: -- cgit v1.2.3