(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

@ -177,6 +177,8 @@ static const char *vcs_get_slot(int type)
}
bool vcs_cart_slot_device::call_load()
{
if (m_cart)
{
UINT8 *ROM;
UINT32 len;
@ -302,6 +304,9 @@ bool vcs_cart_slot_device::call_load()
return IMAGE_INIT_PASS;
}
return IMAGE_INIT_PASS;
}
/*-------------------------------------------------
call_unload