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:
Christoph "baka0815" Schwerdtfeger 2018-08-27 10:40:08 +02:00
parent 14e1e4ded4
commit 81faa0935c
1 changed files with 9 additions and 9 deletions

View File

@ -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);