diff options
Diffstat (limited to 'src/mess/tools/imgtool/imgterrs.c')
-rw-r--r-- | src/mess/tools/imgtool/imgterrs.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/mess/tools/imgtool/imgterrs.c b/src/mess/tools/imgtool/imgterrs.c deleted file mode 100644 index bd679440309..00000000000 --- a/src/mess/tools/imgtool/imgterrs.c +++ /dev/null @@ -1,55 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Nathan Woods -/*************************************************************************** - - imgterrs.c - - Imgtool errors - -***************************************************************************/ - -#include "imgtool.h" -#include "imgterrs.h" -#include "osdcomm.h" - -static const char *const msgs[] = -{ - "Out of memory", - "Unexpected error", - "Argument too long", - "Read error", - "Write error", - "Image is read only", - "Corrupt image", - "Corrupt file", - "Corrupt directory", - "File not found", - "Unrecognized format", - "Not implemented", - "Parameter too small", - "Parameter too large", - "Missing parameter not found", - "Inappropriate parameter", - "Invalid parameter", - "Bad file name", - "Out of space on image", - "Input past end of file", - "Cannot specify path", - "Invalid path", - "Path not found", - "Directory not empty", - "Seek error", - "File system does not support forks", - "Fork not found", - "Invalid partition" -}; - - - -const char *imgtool_error(imgtoolerr_t err) -{ - err = (imgtoolerr_t)(ERRORCODE(err) - 1); - assert(err >= 0); - assert(err < ARRAY_LENGTH(msgs)); - return msgs[err]; -} |