project_files/HedgewarsMobile/Classes/SDL_uikitappdelegate.m
changeset 4510 ce9b8206e681
parent 4504 8906b2409d97
child 4540 9b614e420de5
equal deleted inserted replaced
4509:816a0bff5019 4510:ce9b8206e681
   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     if ([isNetGameNum boolValue] == NO)
   125     [setup startThread:@"engineProtocol"];
   126         [setup startThread:@"engineProtocol"];
   126     if ([isNetGameNum boolValue] == YES)
       
   127         [setup startThread:@"serverProtocol"];
       
   128 
   127     const char **gameArgs = [setup getSettings:[gameDictionary objectForKey:@"savefile"]];
   129     const char **gameArgs = [setup getSettings:[gameDictionary objectForKey:@"savefile"]];
   128     NSNumber *menuStyle = [NSNumber numberWithBool:setup.menuStyle];
   130     NSNumber *menuStyle = [NSNumber numberWithBool:setup.menuStyle];
   129     [setup release];
   131     [setup release];
   130 
   132 
   131     // since the sdlwindow is not yet created, we add the overlayController with a delay
   133     // since the sdlwindow is not yet created, we add the overlayController with a delay