src/mess/machine/wswan.c
| r4067 | r4068 | |
| 17 | 17 | |
| 18 | 18 | #include "driver.h" |
| 19 | 19 | #include "includes/wswan.h" |
| 20 | #include "devices/cartslot.h" |
| 20 | 21 | #include "image.h" |
| 21 | 22 | |
| 22 | 23 | #define INTERNAL_EEPROM_SIZE 1024 |
| r4067 | r4068 | |
| 199 | 200 | |
| 200 | 201 | static void wswan_machine_stop( running_machine *machine ) { |
| 201 | 202 | if ( eeprom.size ) { |
| 202 | | image_battery_save( image_from_devtype_and_index(machine, IO_CARTSLOT,0), eeprom.data, eeprom.size ); |
| 203 | image_battery_save( device_list_find_by_tag(machine->config->devicelist, CARTSLOT, "cart"), eeprom.data, eeprom.size ); |
| 203 | 204 | } |
| 204 | 205 | } |
| 205 | 206 | |