src/mess/devices/sonydriv.c
| r4059 | r4060 | |
| 493 | 493 | { |
| 494 | 494 | int id; |
| 495 | 495 | device_image_unload_func parent_unload; |
| 496 | const device_config *fdc; |
| 496 | 497 | |
| 498 | /* locate the FDC */ |
| 499 | fdc = device_list_find_by_tag( image->machine->config->devicelist, IWM, "fdc"); |
| 500 | |
| 497 | 501 | id = image_index_in_device(image); |
| 498 | | save_track_data((device_config*)device_list_find_by_tag( image->machine->config->devicelist,APPLEFDC,"fdc"),id); |
| 502 | save_track_data(fdc, id); |
| 499 | 503 | memset(&sony_floppy[id], 0, sizeof(sony_floppy[id])); |
| 500 | 504 | |
| 501 | 505 | parent_unload = (device_image_unload_func) mess_device_get_info_fct(&parent_devclass, MESS_DEVINFO_PTR_UNLOAD); |