mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
bus/neogeo/bootleg_prot.cpp: fixed save state problem for kof10th (nw)
This commit is contained in:
parent
dbfcc63e2c
commit
4404f3dab3
@ -142,8 +142,7 @@ WRITE16_MEMBER( ngbootleg_prot_device::kof10th_custom_w )
|
|||||||
//UINT16 *prom = (UINT16*)m_mainrom;
|
//UINT16 *prom = (UINT16*)m_mainrom;
|
||||||
COMBINE_DATA(&m_cartridge_ram2[(0x00000/2) + (offset & 0xFFFF)]);
|
COMBINE_DATA(&m_cartridge_ram2[(0x00000/2) + (offset & 0xFFFF)]);
|
||||||
} else { // Write S data on-the-fly
|
} else { // Write S data on-the-fly
|
||||||
UINT8 *srom = m_fixedrom;
|
m_fixedrom[offset] = BITSWAP8(data,7,6,0,4,3,2,1,5);
|
||||||
srom[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));
|
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);
|
memcpy(m_cartridge_ram2, cpurom + 0xe0000, 0x20000);
|
||||||
|
|
||||||
|
save_pointer(NAME(m_fixedrom), 0x40000);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ngbootleg_prot_device::decrypt_kof10th(UINT8* cpurom, UINT32 cpurom_size)
|
void ngbootleg_prot_device::decrypt_kof10th(UINT8* cpurom, UINT32 cpurom_size)
|
||||||
|
Loading…
Reference in New Issue
Block a user