summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/deco156.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/deco156.c')
-rw-r--r--src/mame/machine/deco156.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/deco156.c b/src/mame/machine/deco156.c
index 68d464758c7..d362c21f3f8 100644
--- a/src/mame/machine/deco156.c
+++ b/src/mame/machine/deco156.c
@@ -124,8 +124,8 @@ static void decrypt(UINT32 *src, UINT32 *dst, int length)
void deco156_decrypt(running_machine &machine)
{
- UINT32 *rom = (UINT32 *)machine.region("maincpu")->base();
- int length = machine.region("maincpu")->bytes();
+ UINT32 *rom = (UINT32 *)machine.root_device().memregion("maincpu")->base();
+ int length = machine.root_device().memregion("maincpu")->bytes();
UINT32 *buf = auto_alloc_array(machine, UINT32, length/4);
memcpy(buf, rom, length);