summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2020-11-23 14:36:00 +0100
committer Olivier Galibert <galibert@pobox.com>2020-11-23 14:36:14 +0100
commited624da99d38a6755cb2c8f094b8816560839c9e (patch)
treedf57e7ad4201a0cc985017ce21134b0b69e96df9 /src/mame
parentee2ec1332bd26db27f391869de04e53ac73606a9 (diff)
Fix dgpix. The patches were applied to the nvram before it was initialized, so they were lost
Diffstat (limited to 'src/mame')
-rw-r--r--src/mame/drivers/dgpix.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/dgpix.cpp b/src/mame/drivers/dgpix.cpp
index 0dd5bed6326..0e130296b2a 100644
--- a/src/mame/drivers/dgpix.cpp
+++ b/src/mame/drivers/dgpix.cpp
@@ -630,7 +630,7 @@ ROM_END
void dgpix_state::init_elfin()
{
- u8 *rom = (u8 *)(u32 *)m_flash + 0x1c00000;
+ u8 *rom = memregion("flash")->base() + 0x1c00000;
rom[BYTE4_XOR_BE(0x3a9e94)] = 3;
rom[BYTE4_XOR_BE(0x3a9e95)] = 0;
@@ -644,7 +644,7 @@ void dgpix_state::init_elfin()
void dgpix_state::init_jumpjump()
{
- u8 *rom = (u8 *)(u32 *)m_flash + 0x1c00000;
+ u8 *rom = memregion("flash")->base() + 0x1c00000;
rom[BYTE4_XOR_BE(0x3a829a)] = 3;
rom[BYTE4_XOR_BE(0x3a829b)] = 0;
@@ -658,7 +658,7 @@ void dgpix_state::init_jumpjump()
void dgpix_state::init_xfiles()
{
- u8 *rom = (u8 *)(u32 *)m_flash + 0x1c00000;
+ u8 *rom = memregion("flash")->base() + 0x1c00000;
rom[BYTE4_XOR_BE(0x3a9a2a)] = 3;
rom[BYTE4_XOR_BE(0x3a9a2b)] = 0;
@@ -672,7 +672,7 @@ void dgpix_state::init_xfiles()
void dgpix_state::init_xfilesk()
{
- u8 *rom = (u8 *)(u32 *)m_flash + 0x1c00000;
+ u8 *rom = memregion("flash")->base() + 0x1c00000;
rom[BYTE4_XOR_BE(0x3aa92e)] = 3;
rom[BYTE4_XOR_BE(0x3aa92f)] = 0;
@@ -689,7 +689,7 @@ void dgpix_state::init_xfilesk()
void dgpix_state::init_kdynastg()
{
- u8 *rom = (u8 *)(u32 *)m_flash + 0x1c00000;
+ u8 *rom = memregion("flash")->base() + 0x1c00000;
rom[BYTE4_XOR_BE(0x3aaa10)] = 3; // 129f0 - nopped call
rom[BYTE4_XOR_BE(0x3aaa11)] = 0;