summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/glass.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/glass.c')
-rw-r--r--src/mame/drivers/glass.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/glass.c b/src/mame/drivers/glass.c
index 38ff14c9cc5..62525ecf4b3 100644
--- a/src/mame/drivers/glass.c
+++ b/src/mame/drivers/glass.c
@@ -54,7 +54,7 @@ GFXDECODE_END
WRITE16_MEMBER(glass_state::OKIM6295_bankswitch_w)
{
- UINT8 *RAM = machine().region("oki")->base();
+ UINT8 *RAM = memregion("oki")->base();
if (ACCESSING_BITS_0_7)
memcpy(&RAM[0x30000], &RAM[0x40000 + (data & 0x0f) * 0x10000], 0x10000);
@@ -297,10 +297,10 @@ static void glass_ROM16_split_gfx( running_machine &machine, const char *src_reg
int i;
/* get a pointer to the source data */
- UINT8 *src = (UINT8 *)machine.region(src_reg)->base();
+ UINT8 *src = (UINT8 *)machine.root_device().memregion(src_reg)->base();
/* get a pointer to the destination data */
- UINT8 *dst = (UINT8 *)machine.region(dst_reg)->base();
+ UINT8 *dst = (UINT8 *)machine.root_device().memregion(dst_reg)->base();
/* fill destination areas with the proper data */
for (i = 0; i < length / 2; i++)