diff options
Diffstat (limited to 'src/mame/drivers/vc4000.cpp')
-rw-r--r-- | src/mame/drivers/vc4000.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/vc4000.cpp b/src/mame/drivers/vc4000.cpp index b3c8427ed8d..bace6ae8ab2 100644 --- a/src/mame/drivers/vc4000.cpp +++ b/src/mame/drivers/vc4000.cpp @@ -410,7 +410,7 @@ QUICKLOAD_LOAD_MEMBER(vc4000_state::quickload_cb) read_ = image.fread( &quick_data[0], quick_length); if (read_ != quick_length) { - image.seterror(IMAGE_ERROR_INVALIDIMAGE, "Cannot read the file"); + image.seterror(image_error::INVALIDIMAGE, "Cannot read the file"); image.message(" Cannot read the file"); } else @@ -419,7 +419,7 @@ QUICKLOAD_LOAD_MEMBER(vc4000_state::quickload_cb) { if (quick_data[0] != 2) { - image.seterror(IMAGE_ERROR_INVALIDIMAGE, "Invalid header"); + image.seterror(image_error::INVALIDIMAGE, "Invalid header"); image.message(" Invalid header"); } else @@ -429,13 +429,13 @@ QUICKLOAD_LOAD_MEMBER(vc4000_state::quickload_cb) if (quick_length < 0x5) { - image.seterror(IMAGE_ERROR_INVALIDIMAGE, "File too short"); + image.seterror(image_error::INVALIDIMAGE, "File too short"); image.message(" File too short"); } else if ((quick_length + quick_addr - 5) > 0x1600) { - image.seterror(IMAGE_ERROR_INVALIDIMAGE, "File too long"); + image.seterror(image_error::INVALIDIMAGE, "File too long"); image.message(" File too long"); } else @@ -460,7 +460,7 @@ QUICKLOAD_LOAD_MEMBER(vc4000_state::quickload_cb) { if (quick_data[0] != 0) { - image.seterror(IMAGE_ERROR_INVALIDIMAGE, "Invalid header"); + image.seterror(image_error::INVALIDIMAGE, "Invalid header"); image.message(" Invalid header"); } else @@ -469,19 +469,19 @@ QUICKLOAD_LOAD_MEMBER(vc4000_state::quickload_cb) if (exec_addr >= quick_length) { - image.seterror(IMAGE_ERROR_INVALIDIMAGE, "Exec address beyond end of file"); + image.seterror(image_error::INVALIDIMAGE, "Exec address beyond end of file"); image.message(" Exec address beyond end of file"); } else if (quick_length < 0x904) { - image.seterror(IMAGE_ERROR_INVALIDIMAGE, "File too short"); + image.seterror(image_error::INVALIDIMAGE, "File too short"); image.message(" File too short"); } else if (quick_length > 0x2000) { - image.seterror(IMAGE_ERROR_INVALIDIMAGE, "File too long"); + image.seterror(image_error::INVALIDIMAGE, "File too long"); image.message(" File too long"); } else |