cdi, chd: better error messages
This commit is contained in:
parent
efcb95b4ee
commit
282534d7bc
|
@ -69,7 +69,10 @@ bool CHDDisc::TryOpen(const wchar* file)
|
|||
chd_error err=chd_open(file,CHD_OPEN_READ,0,&chd);
|
||||
|
||||
if (err!=CHDERR_NONE)
|
||||
{
|
||||
printf("chd: chd_open failed for file %s: %d\n", file, err);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("chd: parsing file %s\n",file);
|
||||
|
||||
|
@ -164,4 +167,4 @@ Disc* chd_parse(const wchar* file)
|
|||
delete rv;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -137,8 +137,9 @@ Disc* OpenDisc(const wchar* fn)
|
|||
rv = drivers[i](fn);
|
||||
|
||||
if (rv && cdi_parse == drivers[i]) {
|
||||
const wchar warn_str[] = "Warning: CDI Image Loaded!\n Many CDI images are known to be defective, GDI or CHD format is preferred. Please only file bug reports when using images known to be good (GDI or CHD).";
|
||||
printf(warn_str);
|
||||
const wchar warn_str[] = "Warning: CDI Image Loaded!\n Many CDI images are known to be defective, GDI or CHD format is preferred. "
|
||||
"Please only file bug reports when using images known to be good (GDI or CHD).";
|
||||
printf("%s\n", warn_str);
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue