summaryrefslogtreecommitdiff
path: root/macosx
diff options
context:
space:
mode:
Diffstat (limited to 'macosx')
-rwxr-xr-xmacosx/PcsxrController.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/macosx/PcsxrController.m b/macosx/PcsxrController.m
index 4bb4a565..9c122a4c 100755
--- a/macosx/PcsxrController.m
+++ b/macosx/PcsxrController.m
@@ -767,6 +767,11 @@ otherblock();\
}
}
+ if (![[NSFileManager defaultManager] fileExistsAtPath:filename]) {
+ NSLog(@"Nonexistant file %@ was passed to open.", filename);
+ return NO;
+ }
+
NSError *err = nil;
NSString *utiFile = [[NSWorkspace sharedWorkspace] typeOfFile:filename error:&err];
if (err) {