From dff6fc11a05660708c5511ecaaf6a11177c219c7 Mon Sep 17 00:00:00 2001 From: Robbbert Date: Fri, 12 Mar 2021 02:56:27 +1100 Subject: nes: if file has invalid header, say so --- src/devices/bus/nes/nes_slot.cpp | 1 + 1 file changed, 1 insertion(+) 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; } } -- cgit v1.2.3