Previous 15994 Revisions Next

r13281 Wednesday 16th November, 2011 at 15:36:17 UTC by Miodrag Milanović
Commented some sanity checks and dependency of MESS code (no whatsnew)
[src/emu/imagedev]flopdrv.c

src/emu/imagedev/flopdrv.c
r13280r13281
117117/***************************************************************************
118118    IMPLEMENTATION
119119***************************************************************************/
120DECLARE_LEGACY_IMAGE_DEVICE(FLOPPY_APPLE, apple525);
121DECLARE_LEGACY_IMAGE_DEVICE(FLOPPY_SONY, sonydriv);
120//DECLARE_LEGACY_IMAGE_DEVICE(FLOPPY_APPLE, apple525);
121//DECLARE_LEGACY_IMAGE_DEVICE(FLOPPY_SONY, sonydriv);
122122
123123INLINE floppy_drive *get_safe_token(device_t *device)
124124{
125125   assert( device != NULL );
126   assert( device->type() == LEGACY_FLOPPY || device->type() == FLOPPY_APPLE || device->type() == FLOPPY_SONY);
126   //assert( device->type() == LEGACY_FLOPPY || device->type() == FLOPPY_APPLE || device->type() == FLOPPY_SONY);
127127   return (floppy_drive *) downcast<legacy_device_base *>(device)->token();
128128}
129129
r13280r13281
10021002      case DEVINFO_FCT_IMAGE_UNLOAD:            info->f = (genf *) DEVICE_IMAGE_UNLOAD_NAME(floppy); break;
10031003      case DEVINFO_FCT_IMAGE_SOFTLIST_LOAD:      info->f = (genf *) DEVICE_IMAGE_SOFTLIST_LOAD_NAME(floppy);   break;
10041004      case DEVINFO_FCT_IMAGE_DISPLAY_INFO:
1005         if (device->type() == FLOPPY_APPLE) {
1006            info->f = NULL;
1007         } else {
1005         if (device->type() == LEGACY_FLOPPY) {
10081006            if ( device && downcast<const legacy_image_device_base *>(device)->static_config() && ((floppy_interface*)(device)->static_config())->device_displayinfo) {
10091007               info->f = (genf *) ((floppy_interface*)(device)->static_config())->device_displayinfo;
10101008            } else {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team