Fixed pls file loading.

CQTexperiment
vspader 2008-03-13 02:00:51 +00:00
parent fe3fd5cb21
commit 2a6d847f70
3 changed files with 5 additions and 2 deletions

View File

@ -143,6 +143,7 @@
hasScannedForEncodings = 1;
mainGroup = 089C166AFE841209C02AAC07 /* M3u */;
projectDirPath = "";
projectRoot = "";
targets = (
8D5B49AC048680CD000E48DA /* M3u */,
);

View File

@ -139,9 +139,11 @@
089C1669FE841209C02AAC07 /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 1DEB913E08733D840010E9CD /* Build configuration list for PBXProject "Pls" */;
compatibilityVersion = "Xcode 2.4";
hasScannedForEncodings = 1;
mainGroup = 089C166AFE841209C02AAC07 /* Pls */;
projectDirPath = "";
projectRoot = "";
targets = (
8D5B49AC048680CD000E48DA /* Pls */,
);

View File

@ -102,11 +102,11 @@
NSScanner *scanner = [[NSScanner alloc] initWithString:entry];
NSString *lhs = nil;
NSString *rhs = nil;
if (![scanner scanUpToString:@"=" intoString:&lhs] || // get LHS
![scanner scanString:@"=" intoString:nil] || // skip the =
![scanner scanUpToString:@"" intoString:&rhs] || // get RHS
![lhs isEqualToString:@"File"]) // We only want file entries
![lhs caseInsensitiveCompare:@"File"]) // We only want file entries
{
[scanner release];
continue;