summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ecoinf3.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-19 20:49:03 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-19 20:49:03 +0100
commit58202e4605774b1309c127f5d705a870509b0e1e (patch)
tree39d20893f1bb43e5e48e5e069ca5138de59a353f /src/mame/drivers/ecoinf3.cpp
parent87ca771281d67a58db3fbe824c05905f97c28507 (diff)
some hand made changes (nw)
Diffstat (limited to 'src/mame/drivers/ecoinf3.cpp')
-rw-r--r--src/mame/drivers/ecoinf3.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/ecoinf3.cpp b/src/mame/drivers/ecoinf3.cpp
index 2bf9fce48d3..3073fdc2852 100644
--- a/src/mame/drivers/ecoinf3.cpp
+++ b/src/mame/drivers/ecoinf3.cpp
@@ -833,7 +833,7 @@ DRIVER_INIT_MEMBER(ecoinf3_state,ecoinf3_swap)
0x06, 0x02, 0x07, 0x03, 0x0e, 0x0a, 0x0f, 0x0b, 0x31, 0x21, 0x39, 0x29, 0x33, 0x23, 0x3b, 0x2b,
};
- UINT8* buffer = auto_alloc_array(machine(), UINT8, 0x10000);
+ auto buffer = std::make_unique<UINT8[]>(0x10000);
UINT8 *rom = memregion( "maincpu" )->base();
@@ -842,7 +842,7 @@ DRIVER_INIT_MEMBER(ecoinf3_state,ecoinf3_swap)
buffer[i] = rom[(i&0xff80)|table[i&0x7f]];
}
- memcpy(rom,buffer,0x10000);
+ memcpy(rom,buffer.get(),0x10000);
}