aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authornotaz2013-06-04 23:46:43 +0300
committernotaz2013-06-04 23:46:43 +0300
commit2e058581166a4b0dea91af3c4ae56054e5da6e75 (patch)
tree5da7f15b407a23de962968454a6efed1973450b0 /libpcsxcore
parent41294f4d869ce943b6144a1dd469105681d32ec1 (diff)
downloadpcsx_rearmed-2e058581166a4b0dea91af3c4ae56054e5da6e75.tar.gz
pcsx_rearmed-2e058581166a4b0dea91af3c4ae56054e5da6e75.tar.bz2
pcsx_rearmed-2e058581166a4b0dea91af3c4ae56054e5da6e75.zip
cdriso: log file open errors
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/cdriso.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c
index bfa7d76..d6672f9 100644
--- a/libpcsxcore/cdriso.c
+++ b/libpcsxcore/cdriso.c
@@ -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;
}