diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2013-02-13 15:41:03 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2013-02-13 15:41:03 +0000 |
commit | 798b2611c9a0c01ec5ebebb386d3c94581dc51b3 (patch) | |
tree | ffc0210be76b3fb2676caeb95161bdbfbbb27f4c /src/mame/drivers/ginganin.c | |
parent | 8d6dcde928536ea088578191d009abdcd30eeedc (diff) |
Removal of not needed machine().root_device() (nw)
Diffstat (limited to 'src/mame/drivers/ginganin.c')
-rw-r--r-- | src/mame/drivers/ginganin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/ginganin.c b/src/mame/drivers/ginganin.c index dffdacd6c4f..2923a214a77 100644 --- a/src/mame/drivers/ginganin.c +++ b/src/mame/drivers/ginganin.c @@ -373,7 +373,7 @@ DRIVER_INIT_MEMBER(ginganin_state,ginganin) UINT16 *rom; /* main cpu patches */ - rom = (UINT16 *)machine().root_device().memregion("maincpu")->base(); + rom = (UINT16 *)memregion("maincpu")->base(); /* avoid writes to rom getting to the log */ rom[0x408 / 2] = 0x6000; rom[0x40a / 2] = 0x001c; @@ -381,7 +381,7 @@ DRIVER_INIT_MEMBER(ginganin_state,ginganin) /* sound cpu patches */ /* let's clear the RAM: ROM starts at 0x4000 */ - memset(machine().root_device().memregion("audiocpu")->base(), 0, 0x800); + memset(memregion("audiocpu")->base(), 0, 0x800); } |