nes: if file has invalid header, say so

This commit is contained in:
Robbbert 2021-03-12 02:56:27 +11:00
parent 0b371f5962
commit dff6fc11a0

View File

@ -887,6 +887,7 @@ image_init_result nes_cart_slot_device::call_load()
else
{
logerror("%s is NOT a file in either iNES or UNIF format.\n", filename());
seterror(IMAGE_ERROR_UNSPECIFIED, "File is neither iNES or UNIF format");
return image_init_result::FAIL;
}
}