bus/neogeo/bootleg_prot.cpp: fixed save state problem for kof10th (nw)

This commit is contained in:
Ivan Vangelista 2016-02-06 09:49:57 +01:00
parent dbfcc63e2c
commit 4404f3dab3

View File

@ -142,8 +142,7 @@ WRITE16_MEMBER( ngbootleg_prot_device::kof10th_custom_w )
//UINT16 *prom = (UINT16*)m_mainrom;
COMBINE_DATA(&m_cartridge_ram2[(0x00000/2) + (offset & 0xFFFF)]);
} else { // Write S data on-the-fly
UINT8 *srom = m_fixedrom;
srom[offset] = BITSWAP8(data,7,6,0,4,3,2,1,5);
m_fixedrom[offset] = BITSWAP8(data,7,6,0,4,3,2,1,5);
}
}
@ -173,6 +172,7 @@ void ngbootleg_prot_device::install_kof10th_protection (cpu_device* maincpu, neo
maincpu->space(AS_PROGRAM).install_write_handler(0x240000, 0x2fffff, write16_delegate(FUNC(ngbootleg_prot_device::kof10th_bankswitch_w),this));
memcpy(m_cartridge_ram2, cpurom + 0xe0000, 0x20000);
save_pointer(NAME(m_fixedrom), 0x40000);
}
void ngbootleg_prot_device::decrypt_kof10th(UINT8* cpurom, UINT32 cpurom_size)