diff options
author | 2010-01-21 06:05:57 +0000 | |
---|---|---|
committer | 2010-01-21 06:05:57 +0000 | |
commit | 1a2c20441f9bea50a435dbae1e0aeab991d4d78d (patch) | |
tree | cdb55bcc02838ab541632af76fcd77fa5008a8f5 /src/emu/romload.c | |
parent | a5668c2eb9d17e3e51f3230db68d3aec09c34507 (diff) |
Remove some aliases between CPUINFO_ and DEVINFO_ to help clarify
usage.
Also converted a few more places to use the new accessors.
Diffstat (limited to 'src/emu/romload.c')
-rw-r--r-- | src/emu/romload.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/romload.c b/src/emu/romload.c index 6767deeedff..0329a462f9c 100644 --- a/src/emu/romload.c +++ b/src/emu/romload.c @@ -166,7 +166,7 @@ const rom_source *rom_first_source(const game_driver *drv, const machine_config if (config != NULL) for (devconfig = config->devicelist.first(); devconfig != NULL; devconfig = devconfig->next) { - const rom_entry *devromp = (const rom_entry *)devconfig->get_config_ptr(DEVINFO_PTR_ROM_REGION); + const rom_entry *devromp = devconfig->rom_region(); if (devromp != NULL) return (rom_source *)devconfig; } @@ -192,7 +192,7 @@ const rom_source *rom_next_source(const game_driver *drv, const machine_config * /* look for further devices with ROM definitions */ for ( ; devconfig != NULL; devconfig = devconfig->next) { - const rom_entry *devromp = (const rom_entry *)devconfig->get_config_ptr(DEVINFO_PTR_ROM_REGION); + const rom_entry *devromp = devconfig->rom_region(); if (devromp != NULL) return (rom_source *)devconfig; } @@ -212,7 +212,7 @@ const rom_entry *rom_first_region(const game_driver *drv, const rom_source *sour if (source == NULL || rom_source_is_gamedrv(drv, source)) romp = drv->rom; else - romp = (const rom_entry *)((const device_config *)source)->get_config_ptr(DEVINFO_PTR_ROM_REGION); + romp = ((const device_config *)source)->rom_region(); return (romp != NULL && !ROMENTRY_ISEND(romp)) ? romp : NULL; } |