summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-12-30 21:39:23 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-12-30 21:39:23 +0000
commitdc6dd5d2c48427a84f97e084cd2d48a7e34748e6 (patch)
treedf47fd39d85de0b69804933639c3ae506e0fee26
parent7c50a51cbf39ff5705428c6fb6d2010d9dac53d1 (diff)
downloadpcsxr-dc6dd5d2c48427a84f97e084cd2d48a7e34748e6.tar.gz
Check to see if the file exists before returning it in HandleBinCue.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@73949 e17a0e51-4ae3-4d35-97c3-1a29b211df97
-rw-r--r--macosx/PcsxrController.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/macosx/PcsxrController.m b/macosx/PcsxrController.m
index 5e67a4b4..b4170fde 100644
--- a/macosx/PcsxrController.m
+++ b/macosx/PcsxrController.m
@@ -46,6 +46,8 @@ static NSString *HandleBinCue(NSString *toHandle)
filePath.location = firstQuote.location + 1; //Don't include the quote symbol
filePath.length = (lastQuote.location + 4) - (firstQuote.location + 1 ); //Include the .bin but not the first quote symbol
temp2 = [temp1 URLByAppendingPathComponent:[cueFile substringWithRange:filePath]];
+ if (![[NSFileManager defaultManager] fileExistsAtPath:[temp2 path]])
+ goto badCue;
goto goodCue;