--- a/src/util.c Mon Jul 14 07:44:42 2008 +0000 +++ b/src/util.c Thu Aug 07 23:35:03 2008 +0000 @@ -30,6 +30,7 @@ #include #include "dream.h" #include "display.h" +#include "dreamcast.h" #include "gui.h" #include "sh4/sh4.h" @@ -320,6 +321,11 @@ if( level <= EMIT_ERR ) { if( gui_error_dialog( text ) ) { g_free(text); + // If we're running, halt on error to avoid potentially flooding + // the user with error messages. + if( dreamcast_is_running() ) { + dreamcast_stop(); + } return; } }