# HG changeset patch # User nkeynes # Date 1216884468 0 # Node ID b2a54f6864ebb5d88a14c4e58a96ef07a32a7b21 # Parent 53dc977f8f25971ef86ce77b59c656f6560328d2 Halt emulation after reporting an error --- a/src/util.c Thu Jul 24 02:31:56 2008 +0000 +++ b/src/util.c Thu Jul 24 07:27:48 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; } }