(MESS) vcs_slot: avoid possible crashes when loading a new game from the internal UI. nw.

This commit is contained in:
Fabio Priuli 2014-08-27 07:07:58 +00:00
parent c7d242438e
commit e286151f74

View File

@ -178,6 +178,8 @@ static const char *vcs_get_slot(int type)
bool vcs_cart_slot_device::call_load()
{
if (m_cart)
{
UINT8 *ROM;
UINT32 len;
@ -299,6 +301,9 @@ bool vcs_cart_slot_device::call_load()
if (m_type == A26_DPC)
m_cart->setup_addon_ptr((UINT8 *)m_cart->get_rom_base() + 0x2000);
return IMAGE_INIT_PASS;
}
return IMAGE_INIT_PASS;
}