mirror of
https://github.com/holub/mame
synced 2025-05-30 01:23:07 +03:00
Naomi: don't crash on games we don't have protection data for.
This commit is contained in:
parent
e48daa45ae
commit
87f2790ae0
@ -232,6 +232,7 @@ READ64_DEVICE_HANDLER( naomibd_r )
|
|||||||
if (!prot)
|
if (!prot)
|
||||||
{
|
{
|
||||||
logerror("naomibd: reading protection data, but none was supplied\n");
|
logerror("naomibd: reading protection data, but none was supplied\n");
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = (UINT64)(prot[byte_offset] | (prot[byte_offset+1]<<8));
|
ret = (UINT64)(prot[byte_offset] | (prot[byte_offset+1]<<8));
|
||||||
|
Loading…
Reference in New Issue
Block a user