CDI: Only warn if CDI image was really loaded
If no image was loaded (or using ioctl) the CDI warning was always printed.
This commit is contained in:
parent
14e1e4ded4
commit
81faa0935c
|
@ -136,7 +136,7 @@ Disc* OpenDisc(const wchar* fn)
|
|||
for (unat i=0; drivers[i] && !rv; i++) { // ;drivers[i] && !(rv=drivers[i](fn));
|
||||
rv = drivers[i](fn);
|
||||
|
||||
if (cdi_parse == drivers[i]) {
|
||||
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).";
|
||||
#ifdef _ANDROID
|
||||
printf(warn_str);
|
||||
|
|
Loading…
Reference in New Issue