Previous 15994 Revisions Next

r2192 Tuesday 1st April, 2008 at 01:36:28 UTC by Nathan Woods
Removed image_device()
[src/mess]image.c image.h
[src/mess/devices]appldriv.c idedrive.c mflopimg.c snapquik.c
[src/mess/osd/windows]menu.c
[src/mess/tools/messtest]testmess.c

src/mess/devices/idedrive.c
r2191r2192
2020   device_image_load_func *parent_load,
2121   device_image_unload_func *parent_unload)
2222{
23   const mess_device_class *devclass = &image_device(image)->devclass;
23   const mess_device_class *devclass = &mess_device_from_core_device(image)->devclass;
2424   mess_device_class parent_devclass;
2525
2626   *which_bus = image_index_in_device(image);
src/mess/devices/mflopimg.c
r2191r2192
279279   flopimg = get_flopimg(image);
280280
281281   /* figure out the floppy options */
282   dev = image_device(image);
282   dev = mess_device_from_core_device(image);
283283   floppy_options = mess_device_get_info_ptr(&dev->devclass, MESS_DEVINFO_PTR_FLOPPY_OPTIONS);
284284
285285   if (image_has_been_created(image))
r2191r2192
308308      apply double steps. Setting the track count of the drive to the
309309      medium track count will then lead to unreachable tracks.
310310   */
311   keep_geometry = (int)mess_device_get_info_int(&image_device(image)->devclass, MESS_DEVINFO_INT_KEEP_DRIVE_GEOMETRY);
311   keep_geometry = (int)mess_device_get_info_int(&mess_device_from_core_device(image)->devclass, MESS_DEVINFO_INT_KEEP_DRIVE_GEOMETRY);
312312
313313   if (!keep_geometry
314314            && floppy_callbacks(flopimg->floppy)->get_heads_per_disk
src/mess/devices/appldriv.c
r2191r2192
175175   const struct IODevice *dev;
176176
177177   disk = (struct apple525_disk *) image_lookuptag(img, APPLE525TAG);
178   dev = image_device(img);
178   dev = mess_device_from_core_device(img);
179179   spinfract_dividend = (int) mess_device_get_info_int(&dev->devclass, MESS_DEVINFO_INT_APPLE525_SPINFRACT_DIVIDEND);
180180   spinfract_divisor = (int) mess_device_get_info_int(&dev->devclass, MESS_DEVINFO_INT_APPLE525_SPINFRACT_DIVISOR);
181181
src/mess/devices/snapquik.c
r2191r2192
5353   if (!si)
5454      return INIT_FAIL;
5555
56   dev = image_device(image);
56   dev = mess_device_from_core_device(image);
5757   assert(dev);
5858
5959   si->dev = dev;
src/mess/tools/messtest/testmess.c
r2191r2192
690690         device_typename(device_type), device_slot);
691691      return;
692692   }
693   dev = image_device(image);
693   dev = mess_device_from_core_device(image);
694694   file_extensions = dev->file_extensions;
695695
696696   /* is an image format specified? */
src/mess/image.c
r2191r2192
10471047****************************************************************************/
10481048
10491049/*-------------------------------------------------
1050    image_device
1051-------------------------------------------------*/
1052
1053const struct IODevice *image_device(const device_config *image)
1054{
1055   return mess_device_from_core_device(image);
1056}
1057
1058
1059
1060/*-------------------------------------------------
10611050    image_exists
10621051-------------------------------------------------*/
10631052
src/mess/image.h
r2191r2192
125125  These provide information about the device; and about the mounted image
126126****************************************************************************/
127127
128const struct IODevice *image_device(const device_config *image);
129128int image_exists(const device_config *image);
130129int image_slotexists(const device_config *image);
131130
src/mess/osd/windows/menu.c
r2191r2192
824824   char filter[2048];
825825   char filename[MAX_PATH];
826826   char buffer[512];
827   const struct IODevice *dev = image_device(img);
827   const struct IODevice *dev = mess_device_from_core_device(img);
828828   const char *initial_dir;
829829   BOOL result;
830830   int create_format = 0;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team