Search
lxdream.org :: lxdream/src/dreamcast.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/dreamcast.c
changeset 727:f934967b77a3
prev689:9868667e3525
next736:a02d1475ccfd
author nkeynes
date Sun Jul 06 04:52:37 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Fix exit code from exit() being lost (from SH4 code)
file annotate diff log raw
1.1 --- a/src/dreamcast.c Mon Jun 16 10:58:41 2008 +0000
1.2 +++ b/src/dreamcast.c Sun Jul 06 04:52:37 2008 +0000
1.3 @@ -220,7 +220,10 @@
1.4
1.5 void dreamcast_shutdown()
1.6 {
1.7 - dreamcast_stop();
1.8 + // Don't do a dreamcast_stop - if we're calling this out of SH4 code,
1.9 + // it's a shutdown-and-quit event
1.10 + if( dreamcast_state == STATE_RUNNING )
1.11 + dreamcast_state = STATE_STOPPING;
1.12 dreamcast_save_flash();
1.13 #ifdef ENABLE_SH4STATS
1.14 sh4_stats_print(stdout);
.