Previous 15994 Revisions Next

r3060 Tuesday 19th August, 2008 at 10:46:09 UTC by Nathan Woods
Cleanups of obsolescent code
[src/mess]device.c device.h inputx.c mesvalid.c

src/mess/device.c
r3059r3060
168168 *
169169 *************************************/
170170
171const char *device_uiname(iodevice_t devtype)
171static const char *device_uiname(iodevice_t devtype)
172172{
173173   return ui_getstring((UI_cartridge - IO_CARTSLOT) + devtype);
174174}
src/mess/device.h
r3059r3060
175175 *
176176 *************************************/
177177
178typedef struct _create_image_options create_image_options;
179struct _create_image_options
180{
181   const char *name;
182   const char *description;
183   const char *extensions;
184   const char *optspec;
185};
186
187178/* interoperability with MAME devices */
188179DEVICE_GET_INFO(mess_device);
189180struct _machine_config *machine_config_alloc_with_mess_devices(const game_driver *gamedrv);
190181const mess_device_class *mess_devclass_from_core_device(const device_config *device);
191182
192183/* device naming */
193const char *device_uiname(iodevice_t devtype);
194184const char *device_typename(iodevice_t type);
195185const char *device_brieftypename(iodevice_t type);
196186iodevice_t device_typeid(const char *name);
src/mess/inputx.c
r3059r3060
14811481   for (port = machine->portconfig; !found && (port != NULL); port = port->next)
14821482   {
14831483      for (field = port->fieldlist; !found && (field != NULL); field = field->next)
1484         found = (field->type == IPT_CATEGORY) && (field->category == category);
1484         found = (field->type == IPT_CATEGORY) && (field->defvalue == category);
14851485   }
14861486
14871487   if (field != NULL)
src/mess/mesvalid.c
r3059r3060
284284{
285285   int i;
286286   int error = 0;
287   iodevice_t devtype;
288   const char *name;
289287
290   /* make sure that all of the UI_* strings are set for all devices */
291   for (devtype = 0; devtype < IO_COUNT; devtype++)
292   {
293      name = device_uiname(devtype);
294      if (!name || !name[0])
295      {
296         mame_printf_error("Device type %d does not have an associated UI string\n", devtype);
297         error = 1;
298      }
299   }
300
301288   /* MESS specific driver validity checks */
302289   for (i = 0; drivers[i]; i++)
303290   {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team