Previous 15994 Revisions Next

r4068 Monday 5th January, 2009 at 14:22:33 UTC by Miodrag Milanović
[WSWAN] Fixed regression
[src/mess/machine]wswan.c

src/mess/machine/wswan.c
r4067r4068
1717
1818#include "driver.h"
1919#include "includes/wswan.h"
20#include "devices/cartslot.h"
2021#include "image.h"
2122
2223#define INTERNAL_EEPROM_SIZE   1024
r4067r4068
199200
200201static void wswan_machine_stop( running_machine *machine ) {
201202   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 );
203204   }
204205}
205206

Previous 15994 Revisions Next


© 1998-2018 The MESS Team