| 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 |
| r3059 | r3060 | |
|---|---|---|
| 168 | 168 | * |
| 169 | 169 | *************************************/ |
| 170 | 170 | |
| 171 | const char *device_uiname(iodevice_t devtype) | |
| 171 | static const char *device_uiname(iodevice_t devtype) | |
| 172 | 172 | { |
| 173 | 173 | return ui_getstring((UI_cartridge - IO_CARTSLOT) + devtype); |
| 174 | 174 | } |
| r3059 | r3060 | |
|---|---|---|
| 175 | 175 | * |
| 176 | 176 | *************************************/ |
| 177 | 177 | |
| 178 | typedef struct _create_image_options create_image_options; | |
| 179 | struct _create_image_options | |
| 180 | { | |
| 181 | const char *name; | |
| 182 | const char *description; | |
| 183 | const char *extensions; | |
| 184 | const char *optspec; | |
| 185 | }; | |
| 186 | ||
| 187 | 178 | /* interoperability with MAME devices */ |
| 188 | 179 | DEVICE_GET_INFO(mess_device); |
| 189 | 180 | struct _machine_config *machine_config_alloc_with_mess_devices(const game_driver *gamedrv); |
| 190 | 181 | const mess_device_class *mess_devclass_from_core_device(const device_config *device); |
| 191 | 182 | |
| 192 | 183 | /* device naming */ |
| 193 | const char *device_uiname(iodevice_t devtype); | |
| 194 | 184 | const char *device_typename(iodevice_t type); |
| 195 | 185 | const char *device_brieftypename(iodevice_t type); |
| 196 | 186 | iodevice_t device_typeid(const char *name); |
| r3059 | r3060 | |
|---|---|---|
| 1481 | 1481 | for (port = machine->portconfig; !found && (port != NULL); port = port->next) |
| 1482 | 1482 | { |
| 1483 | 1483 | for (field = port->fieldlist; !found && (field != NULL); field = field->next) |
| 1484 | found = (field->type == IPT_CATEGORY) && (field-> | |
| 1484 | found = (field->type == IPT_CATEGORY) && (field->defvalue | |
| 1485 | 1485 | } |
| 1486 | 1486 | |
| 1487 | 1487 | if (field != NULL) |
| r3059 | r3060 | |
|---|---|---|
| 284 | 284 | { |
| 285 | 285 | int i; |
| 286 | 286 | int error = 0; |
| 287 | iodevice_t devtype; | |
| 288 | const char *name; | |
| 289 | 287 | |
| 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 | ||
| 301 | 288 | /* MESS specific driver validity checks */ |
| 302 | 289 | for (i = 0; drivers[i]; i++) |
| 303 | 290 | { |
| Previous | 15994 Revisions | Next |