Commented some sanity checks and dependency of MESS code (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2011-11-16 15:34:24 +00:00
parent f7844d604b
commit 63a57bb005

View File

@ -117,13 +117,13 @@ static const floppy_error_map errmap[] =
/***************************************************************************
IMPLEMENTATION
***************************************************************************/
DECLARE_LEGACY_IMAGE_DEVICE(FLOPPY_APPLE, apple525);
DECLARE_LEGACY_IMAGE_DEVICE(FLOPPY_SONY, sonydriv);
//DECLARE_LEGACY_IMAGE_DEVICE(FLOPPY_APPLE, apple525);
//DECLARE_LEGACY_IMAGE_DEVICE(FLOPPY_SONY, sonydriv);
INLINE floppy_drive *get_safe_token(device_t *device)
{
assert( device != NULL );
assert( device->type() == LEGACY_FLOPPY || device->type() == FLOPPY_APPLE || device->type() == FLOPPY_SONY);
//assert( device->type() == LEGACY_FLOPPY || device->type() == FLOPPY_APPLE || device->type() == FLOPPY_SONY);
return (floppy_drive *) downcast<legacy_device_base *>(device)->token();
}
@ -1002,9 +1002,7 @@ DEVICE_GET_INFO(floppy)
case DEVINFO_FCT_IMAGE_UNLOAD: info->f = (genf *) DEVICE_IMAGE_UNLOAD_NAME(floppy); break;
case DEVINFO_FCT_IMAGE_SOFTLIST_LOAD: info->f = (genf *) DEVICE_IMAGE_SOFTLIST_LOAD_NAME(floppy); break;
case DEVINFO_FCT_IMAGE_DISPLAY_INFO:
if (device->type() == FLOPPY_APPLE) {
info->f = NULL;
} else {
if (device->type() == LEGACY_FLOPPY) {
if ( device && downcast<const legacy_image_device_base *>(device)->static_config() && ((floppy_interface*)(device)->static_config())->device_displayinfo) {
info->f = (genf *) ((floppy_interface*)(device)->static_config())->device_displayinfo;
} else {