diff options
author | 2013-12-20 16:04:11 +0000 | |
---|---|---|
committer | 2013-12-20 16:04:11 +0000 | |
commit | 8c7486fa5d9eb873577770a92bc524770ed402ba (patch) | |
tree | 7343677631c224588f7113cd61c40747293de5b8 /src/emu/bus/c64/georam.c | |
parent | 7afab9bda2b90efc60412ec7ef3215466b53fb21 (diff) |
(MESS) Used shared_ptr instead of UINT8* in the Commodore cartridges. (nw)
Diffstat (limited to 'src/emu/bus/c64/georam.c')
-rw-r--r-- | src/emu/bus/c64/georam.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emu/bus/c64/georam.c b/src/emu/bus/c64/georam.c index ef0938150c7..a778cfad1c1 100644 --- a/src/emu/bus/c64/georam.c +++ b/src/emu/bus/c64/georam.c @@ -31,7 +31,8 @@ const device_type C64_GEORAM = &device_creator<c64_georam_cartridge_device>; c64_georam_cartridge_device::c64_georam_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, C64_GEORAM, "C64 GeoRAM cartridge", tag, owner, clock, "c64_georam", __FILE__), - device_c64_expansion_card_interface(mconfig, *this) + device_c64_expansion_card_interface(mconfig, *this), + m_ram(*this, "ram") { } @@ -43,7 +44,7 @@ c64_georam_cartridge_device::c64_georam_cartridge_device(const machine_config &m void c64_georam_cartridge_device::device_start() { // allocate memory - c64_ram_pointer(machine(), 0x80000); + m_ram.allocate(0x80000); // state saving save_item(NAME(m_bank)); |