--- a/src/main.c Mon May 12 10:00:13 2008 +0000 +++ b/src/main.c Thu May 29 10:50:25 2008 +0000 @@ -207,6 +207,7 @@ if( dreamcast_can_run() ) { if( time_nanos != 0 || time_secs != 0 ) { dreamcast_run_for(time_secs, time_nanos); + dreamcast_shutdown(); return 0; } else { dreamcast_run(); @@ -218,6 +219,7 @@ if( !headless ) { gui_main_loop(); } + dreamcast_shutdown(); return 0; }