From dc6dd5d2c48427a84f97e084cd2d48a7e34748e6 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Fri, 30 Dec 2011 21:39:23 +0000 Subject: 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 --- macosx/PcsxrController.m | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3