filename | src/util.c |
changeset | 768:b2a54f6864eb |
prev | 736:a02d1475ccfd |
next | 1042:0fd066956482 |
author | nkeynes |
date | Thu Jan 22 00:45:15 2009 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Make local functions static (to shut up icc warnings, plus not being a bad idea in general) |
file | annotate | diff | log | raw |
1.1 --- a/src/util.c Mon Jul 14 07:44:42 2008 +00001.2 +++ b/src/util.c Thu Jan 22 00:45:15 2009 +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 }
.