summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/apexc.cpp
diff options
context:
space:
mode:
authorGravatarGravatar Robbbert <Robbbert@users.noreply.github.com>2018-05-20 16:58:34 +1000
committerGravatarGravatar Robbbert <Robbbert@users.noreply.github.com>2018-05-20 16:58:34 +1000
commit4ede644a48a6aba4e3b47021fadd18aea0d89bf2 (patch) (github)
tree89ed927b99dcafe5f6aca79c0437a1967789baa8 /src/mame/drivers/apexc.cpp
parent28ec227a185234f43bbe3d359e6f0be68cd12586 (diff)
downloadmame-4ede644a48a6aba4e3b47021fadd18aea0d89bf2.tar.bz2
mame-4ede644a48a6aba4e3b47021fadd18aea0d89bf2.zip
apexc : fixed regression/crash introduced on 2018-02-12.
Diffstat (limited to 'src/mame/drivers/apexc.cpp')
-rw-r--r--src/mame/drivers/apexc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/apexc.cpp b/src/mame/drivers/apexc.cpp
index fbd4d6ff2d5..0cc5b126cbe 100644
--- a/src/mame/drivers/apexc.cpp
+++ b/src/mame/drivers/apexc.cpp
@@ -117,7 +117,7 @@ image_init_result apexc_cylinder_image_device::call_load()
fread( machine().root_device().memshare("maincpu")->ptr(), 0x1000);
#ifdef LSB_FIRST
{ /* fix endianness */
- uint32_t *RAM = (uint32_t *)(machine().root_device().memregion("maincpu")->base());
+ uint32_t *RAM = (uint32_t *)(machine().root_device().memshare("maincpu")->ptr());
for (int i=0; i < 0x0400; i++)
RAM[i] = big_endianize_int32(RAM[i]);
@@ -138,14 +138,14 @@ void apexc_cylinder_image_device::call_unload()
fseek(0, SEEK_SET);
#ifdef LSB_FIRST
{ /* fix endianness */
- uint32_t *RAM = (uint32_t *)(machine().root_device().memregion("maincpu")->base());
+ uint32_t *RAM = (uint32_t *)(machine().root_device().memshare("maincpu")->ptr());
for (int i=0; i < /*0x2000*/0x0400; i++)
RAM[i] = big_endianize_int32(RAM[i]);
}
#endif
/* write */
- fwrite(machine().root_device().memregion("maincpu")->base(), /*0x8000*/0x1000);
+ fwrite(machine().root_device().memshare("maincpu")->ptr(), /*0x8000*/0x1000);
}
}