1.1 --- a/src/dreamcast.c Sat Jan 06 04:06:36 2007 +0000
1.2 +++ b/src/dreamcast.c Mon Jan 15 12:58:05 2007 +0000
1.5 - * $Id: dreamcast.c,v 1.19 2007-01-06 04:06:36 nkeynes Exp $
1.6 + * $Id: dreamcast.c,v 1.20 2007-01-12 10:16:02 nkeynes Exp $
1.7 * Central switchboard for the system. This pulls all the individual modules
1.8 * together into some kind of coherent structure. This is also where you'd
1.9 * add Naomi support, if I ever get a board to play with...
1.11 dreamcast_register_module( &ide_module );
1.14 +void dreamcast_save_flash()
1.16 + char *file = dreamcast_get_config_value(CONFIG_FLASH_PATH);
1.17 + mem_save_block( file, 0x00200000, 0x00020000 );
1.21 * Constructs a system configuration for the AICA in standalone mode,
1.22 * ie sound chip only.
1.23 @@ -154,6 +160,13 @@
1.24 dreamcast_state = STATE_STOPPING;
1.27 +void dreamcast_shutdown()
1.31 + dreamcast_save_flash();
1.34 gboolean dreamcast_is_running( void )
1.36 return dreamcast_state == STATE_RUNNING;