diff options
author | 2012-02-18 18:22:47 +0000 | |
---|---|---|
committer | 2012-02-18 18:22:47 +0000 | |
commit | c4baab0fee49c32204401c0032327a7663dbae78 (patch) | |
tree | c8ef8e0df569f1f6f5ff1b81391c7bbd3cf9c846 /src/emu/imagedev/harddriv.c | |
parent | 05c62ec803c4354c3a022c365f15bc97cd0f5033 (diff) |
Fixed CHD error messages for image devices (no whatsnew)
Diffstat (limited to 'src/emu/imagedev/harddriv.c')
-rw-r--r-- | src/emu/imagedev/harddriv.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/emu/imagedev/harddriv.c b/src/emu/imagedev/harddriv.c index fe06cfdfb5f..16f5977098b 100644 --- a/src/emu/imagedev/harddriv.c +++ b/src/emu/imagedev/harddriv.c @@ -25,6 +25,8 @@ static const char *const error_strings[] = "no error", "no drive interface", "out of memory", + "file not open", + "file already open", "invalid file", "invalid parameter", "invalid data", @@ -39,11 +41,19 @@ static const char *const error_strings[] = "decompression error", "compression error", "can't create file", - "can't verify file" + "can't verify file", "operation not supported", "can't find metadata", "invalid metadata size", - "unsupported CHD version" + "unsupported CHD version", + "verify incomplete", + "invalid metadata", + "invalid state", + "operation pending", + "unsupported format", + "unknown compression", + "error walking_parent", + "error compressing" }; static const char *chd_get_error_string(int chderr) @@ -230,6 +240,7 @@ int harddisk_image_device::internal_load_hd() { is_writeable = !is_readonly(); err = m_self_chd.open(*image_core_file(), is_writeable); + printf("%d\n",err); if (err == CHDERR_NONE) m_chd = &m_self_chd; @@ -258,8 +269,9 @@ done: m_self_chd.close(); m_chd = NULL; } - + printf("%d\n",err); seterror(IMAGE_ERROR_UNSPECIFIED, chd_get_error_string(err)); + printf("%s\n",chd_get_error_string(err)); } return err ? IMAGE_INIT_FAIL : IMAGE_INIT_PASS; } |