diff options
author | 2021-03-12 02:56:27 +1100 | |
---|---|---|
committer | 2021-03-12 02:56:27 +1100 | |
commit | dff6fc11a05660708c5511ecaaf6a11177c219c7 (patch) | |
tree | ded0399531aacf7e357b506a94cd6ab11b920f16 | |
parent | 0b371f59629fa2742bf938789ab89c701140102b (diff) |
nes: if file has invalid header, say so
-rw-r--r-- | src/devices/bus/nes/nes_slot.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/devices/bus/nes/nes_slot.cpp b/src/devices/bus/nes/nes_slot.cpp index 6b66dbb2aa6..812aa738399 100644 --- a/src/devices/bus/nes/nes_slot.cpp +++ b/src/devices/bus/nes/nes_slot.cpp @@ -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; } } |