cdriso: log file open errors
authornotaz <notasas@gmail.com>
Tue, 4 Jun 2013 20:46:43 +0000 (23:46 +0300)
committernotaz <notasas@gmail.com>
Tue, 4 Jun 2013 20:46:43 +0000 (23:46 +0300)
libpcsxcore/cdriso.c

index bfa7d76..d6672f9 100644 (file)
@@ -34,6 +34,7 @@
 #include <sys/time.h>
 #include <unistd.h>
 #endif
+#include <errno.h>
 #include <zlib.h>
 
 unsigned int cdrIsoMultidiskCount;
@@ -1222,6 +1223,8 @@ static long CALLBACK ISOopen(void) {
 
        cdHandle = fopen(GetIsoFile(), "rb");
        if (cdHandle == NULL) {
+               SysPrintf(_("Could't open '%s' for reading: %s\n"),
+                       GetIsoFile(), strerror(errno));
                return -1;
        }