Fixed a memory leak in HandleBinCue.
Fixed a bug in HandleBinCue. Made it so that HandleBinCue checks to see if there is a file with .bin. If not, use .BIN. This should help with case-sensitive filesystems. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@73194 e17a0e51-4ae3-4d35-97c3-1a29b211df97
This commit is contained in:
parent
5fd066c404
commit
567a746673
|
@ -23,10 +23,14 @@ static NSString *HandleBinCue(NSString *toHandle)
|
|||
NSString *newName = toHandle;
|
||||
if ([extension caseInsensitiveCompare:@"cue"] == NSOrderedSame) {
|
||||
NSURL *temp1 = [tempURL URLByDeletingPathExtension];
|
||||
//TODO: handle case-sensitive filesystems
|
||||
NSURL *temp2 = [tempURL URLByAppendingPathExtension:@"bin"];
|
||||
//TODO: handle case-sensitive filesystems better
|
||||
NSURL *temp2 = [temp1 URLByAppendingPathExtension:@"bin"];
|
||||
if (![[NSFileManager defaultManager] fileExistsAtPath:[temp2 path]]) {
|
||||
temp2 = [temp1 URLByAppendingPathExtension:@"BIN"];
|
||||
}
|
||||
newName = [temp2 path];
|
||||
}
|
||||
[tempURL release];
|
||||
return newName;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue