| Previous | 15994 Revisions | Next |
| r2069 Saturday 22nd March, 2008 at 19:01:22 UTC by Nathan Woods |
|---|
| More machine->devices[] elimination |
| [src/mess] | device.c filemngr.c |
| r2068 | r2069 | |
|---|---|---|
| 452 | 452 | /* this function is deprecated */ |
| 453 | 453 | int device_count(iodevice_t type) |
| 454 | 454 | { |
| 455 | const struct IODevice *dev = NULL; | |
| 456 | if (Machine->devices) | |
| 457 | dev = device_find(Machine->devices, type); | |
| 458 | return dev ? dev->count : 0; | |
| 455 | const struct IODevice *iodev = device_find_from_machine(Machine, type); | |
| 456 | return (iodev != NULL) ? iodev->count : 0; | |
| 459 | 457 | } |
| 460 | 458 | |
| 461 | 459 |
| r2068 | r2069 | |
|---|---|---|
| 648 | 648 | total = 0; |
| 649 | 649 | |
| 650 | 650 | /* Cycle through all devices for this system */ |
| 651 | for (dev = | |
| 651 | for (dev = m | |
| 652 | 652 | { |
| 653 | 653 | for (id = 0; id < dev->count; id++) |
| 654 | 654 | { |
| Previous | 15994 Revisions | Next |