summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/ics2115.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-01-16 00:53:57 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-01-16 00:53:57 +0000
commitd35a800134bd09dfc8cf5df9d35e2fd3ba150f92 (patch)
tree0be7bd189caa22be05f114be7ccd4ffa0ac5d517 /src/emu/sound/ics2115.c
parent51fd1fa8226a19c2b012faafa88f89dd3cd462f2 (diff)
Added casting operators to the region_info class so you can assign
a region to a generic type pointer and have it automatically convert. Also added a bytes() method which is safe if the region is NULL (useful for saying machine->region("foo")->bytes() and not crashing if foo doesn't exist). Changed the region field in the device_config to be a region_info *, and removed the regionbytes field. Updated all users of these fields to use the new casting operators and bytes() methods instead. Added subdevice and subregion methods to the device_config class, so you can easily query for devices and regions that are device-specific. The device prefix ("devicename:") is automatically prepended.
Diffstat (limited to 'src/emu/sound/ics2115.c')
-rw-r--r--src/emu/sound/ics2115.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/sound/ics2115.c b/src/emu/sound/ics2115.c
index a24bd88981b..d32b17ceee6 100644
--- a/src/emu/sound/ics2115.c
+++ b/src/emu/sound/ics2115.c
@@ -477,7 +477,7 @@ static DEVICE_START( ics2115 )
chip->device = device;
chip->intf = (const ics2115_interface *)device->static_config;
- chip->rom = device->region;
+ chip->rom = *device->region;
chip->timer[0].timer = timer_alloc(device->machine, timer_cb_0, chip);
chip->timer[1].timer = timer_alloc(device->machine, timer_cb_1, chip);
chip->ulaw = auto_alloc_array(device->machine, INT16, 256);