Naomi: don't crash on games we don't have protection data for.

This commit is contained in:
R. Belmont 2009-07-18 22:19:48 +00:00
parent e48daa45ae
commit 87f2790ae0

View File

@ -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));