src/emu/imagedev/harddriv.c
| r14514 | r14515 | |
| 25 | 25 | "no error", |
| 26 | 26 | "no drive interface", |
| 27 | 27 | "out of memory", |
| 28 | "file not open", |
| 29 | "file already open", |
| 28 | 30 | "invalid file", |
| 29 | 31 | "invalid parameter", |
| 30 | 32 | "invalid data", |
| r14514 | r14515 | |
| 39 | 41 | "decompression error", |
| 40 | 42 | "compression error", |
| 41 | 43 | "can't create file", |
| 42 | | "can't verify file" |
| 44 | "can't verify file", |
| 43 | 45 | "operation not supported", |
| 44 | 46 | "can't find metadata", |
| 45 | 47 | "invalid metadata size", |
| 46 | | "unsupported CHD version" |
| 48 | "unsupported CHD version", |
| 49 | "verify incomplete", |
| 50 | "invalid metadata", |
| 51 | "invalid state", |
| 52 | "operation pending", |
| 53 | "unsupported format", |
| 54 | "unknown compression", |
| 55 | "error walking_parent", |
| 56 | "error compressing" |
| 47 | 57 | }; |
| 48 | 58 | |
| 49 | 59 | static const char *chd_get_error_string(int chderr) |
| r14514 | r14515 | |
| 230 | 240 | { |
| 231 | 241 | is_writeable = !is_readonly(); |
| 232 | 242 | err = m_self_chd.open(*image_core_file(), is_writeable); |
| 243 | printf("%d\n",err); |
| 233 | 244 | if (err == CHDERR_NONE) |
| 234 | 245 | m_chd = &m_self_chd; |
| 235 | 246 | |
| r14514 | r14515 | |
| 258 | 269 | m_self_chd.close(); |
| 259 | 270 | m_chd = NULL; |
| 260 | 271 | } |
| 261 | | |
| 272 | printf("%d\n",err); |
| 262 | 273 | seterror(IMAGE_ERROR_UNSPECIFIED, chd_get_error_string(err)); |
| 274 | printf("%s\n",chd_get_error_string(err)); |
| 263 | 275 | } |
| 264 | 276 | return err ? IMAGE_INIT_FAIL : IMAGE_INIT_PASS; |
| 265 | 277 | } |