mirror of
https://github.com/holub/mame
synced 2025-04-19 15:11:37 +03:00
remove some unneeded usage of save_pointer + .get()
This commit is contained in:
parent
8d22f65d29
commit
24a281741a
@ -54,7 +54,7 @@ void c64_dqbb_cartridge_device::device_start()
|
||||
{
|
||||
// allocate memory
|
||||
m_nvram = std::make_unique<uint8_t[]>(0x4000);
|
||||
save_pointer(NAME(m_nvram.get()), 0x4000);
|
||||
save_pointer(NAME(m_nvram), 0x4000);
|
||||
|
||||
// state saving
|
||||
save_item(NAME(m_cs));
|
||||
|
@ -98,7 +98,7 @@ c64_final_chesscard_device::c64_final_chesscard_device(const machine_config &mco
|
||||
void c64_final_chesscard_device::device_start()
|
||||
{
|
||||
m_nvram = std::make_unique<uint8_t[]>(0x2000);
|
||||
save_pointer(NAME(m_nvram.get()), 0x2000);
|
||||
save_pointer(NAME(m_nvram), 0x2000);
|
||||
|
||||
// state saving
|
||||
save_item(NAME(m_bank));
|
||||
|
@ -53,7 +53,7 @@ void isa8_chessmsr_device::device_start()
|
||||
// allocate maximum RAM beforehand
|
||||
const u32 maxram = 1 << 21;
|
||||
m_ram = std::make_unique<u32[]>(maxram / 4);
|
||||
save_pointer(NAME(m_ram.get()), maxram / 4);
|
||||
save_pointer(NAME(m_ram), maxram / 4);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user