project_files/HedgewarsMobile/Classes/SDL_uikitappdelegate.m
changeset 4547 b70004a576a3
parent 4540 9b614e420de5
child 4754 a0fd8211c00f
equal deleted inserted replaced
4546:a6402b8c2b24 4547:b70004a576a3
   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