src/emu/imagedev/harddriv.c
| r14549 | r14550 | |
| 195 | 195 | { |
| 196 | 196 | is_writeable = !is_readonly(); |
| 197 | 197 | err = m_self_chd.open(*image_core_file(), is_writeable); |
| 198 | | printf("%d\n",err); |
| 199 | 198 | if (err == CHDERR_NONE) |
| 200 | 199 | m_chd = &m_self_chd; |
| 201 | 200 | |
| r14549 | r14550 | |
| 224 | 223 | m_self_chd.close(); |
| 225 | 224 | m_chd = NULL; |
| 226 | 225 | } |
| 227 | | printf("%d\n",err); |
| 228 | 226 | seterror(IMAGE_ERROR_UNSPECIFIED, chd_file::error_string(err)); |
| 229 | | printf("%s\n",chd_file::error_string(err)); |
| 230 | 227 | } |
| 231 | 228 | return err ? IMAGE_INIT_FAIL : IMAGE_INIT_PASS; |
| 232 | 229 | } |