(MESS) vcs_slot: avoid possible crashes when loading a new game from the internal UI. nw.
This commit is contained in:
parent
c7d242438e
commit
e286151f74
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user