equal
deleted
inserted
replaced
119 [blackView release]; |
119 [blackView release]; |
120 |
120 |
121 // pull out useful configuration info from various files |
121 // pull out useful configuration info from various files |
122 GameSetup *setup = [[GameSetup alloc] initWithDictionary:gameDictionary]; |
122 GameSetup *setup = [[GameSetup alloc] initWithDictionary:gameDictionary]; |
123 NSNumber *isNetGameNum = [gameDictionary objectForKey:@"netgame"]; |
123 NSNumber *isNetGameNum = [gameDictionary objectForKey:@"netgame"]; |
124 |
124 |
125 [setup startThread:@"engineProtocol"]; |
125 [NSThread detachNewThreadSelector:@selector(engineProtocol) |
126 if ([isNetGameNum boolValue] == YES) |
126 toTarget:setup |
127 [setup startThread:@"serverProtocol"]; |
127 withObject:nil]; |
128 |
128 |
129 const char **gameArgs = [setup getSettings:[gameDictionary objectForKey:@"savefile"]]; |
129 const char **gameArgs = [setup getSettings:[gameDictionary objectForKey:@"savefile"]]; |
130 NSNumber *menuStyle = [NSNumber numberWithBool:setup.menuStyle]; |
130 NSNumber *menuStyle = [NSNumber numberWithBool:setup.menuStyle]; |
131 [setup release]; |
131 [setup release]; |
132 |
132 |