revision 768:b2a54f6864eb
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 768:b2a54f6864eb |
parent | 767:53dc977f8f25 |
child | 769:f7f62bea4cad |
author | nkeynes |
date | Thu Jul 24 07:27:48 2008 +0000 (15 years ago) |
Halt emulation after reporting an error
src/util.c | view | annotate | diff | log |
1.1 --- a/src/util.c Thu Jul 24 02:31:56 2008 +00001.2 +++ b/src/util.c Thu Jul 24 07:27:48 2008 +00001.3 @@ -30,6 +30,7 @@1.4 #include <png.h>1.5 #include "dream.h"1.6 #include "display.h"1.7 +#include "dreamcast.h"1.8 #include "gui.h"1.9 #include "sh4/sh4.h"1.11 @@ -320,6 +321,11 @@1.12 if( level <= EMIT_ERR ) {1.13 if( gui_error_dialog( text ) ) {1.14 g_free(text);1.15 + // If we're running, halt on error to avoid potentially flooding1.16 + // the user with error messages.1.17 + if( dreamcast_is_running() ) {1.18 + dreamcast_stop();1.19 + }1.20 return;1.21 }1.22 }
.