Fix osx launcher.

This commit is contained in:
Paul Chote
2011-01-06 18:51:40 +13:00
parent 0cef2e4f53
commit 8dcba13491
3 changed files with 3 additions and 4 deletions

View File

@@ -58,8 +58,8 @@
if ([kv count] < 2)
continue;
id key = [kv objectAtIndex:0];
id value = [kv objectAtIndex:1];
id key = [[kv objectAtIndex:0] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
id value = [[kv objectAtIndex:1] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
if ([key isEqualToString:@"Error"])
{
@@ -75,7 +75,7 @@
id path = [gamePath stringByAppendingPathComponent:[NSString stringWithFormat:@"mods/%@",current]];
[ret setObject:[Mod modWithId:current fields:fields path:path] forKey:current];
}
NSLog(@"Parsing mod %@",value);
NSLog(@"Parsing mod `%@`",value);
current = value;
fields = [NSMutableDictionary dictionary];
}

View File

@@ -25,7 +25,6 @@
self = [super init];
if (self != nil)
{
NSLog(@"Requesting url `%@` with callback:`%@`",aURL, aCallback);
url = [aURL retain];
callback = [aCallback retain];
game = [aGame retain];