project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m
changeset 6301 1259736c0134
parent 6265 a6944f94c19f
child 6321 5a0416e5a6de
equal deleted inserted replaced
6300:db8fd3ff693c 6301:1259736c0134
    52 }
    52 }
    53 
    53 
    54 #pragma mark -
    54 #pragma mark -
    55 #pragma mark Spawner functions
    55 #pragma mark Spawner functions
    56 -(NSInteger) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary {
    56 -(NSInteger) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary {
       
    57     [self retain];
    57     self.stream = (onSaveFile) ? [[NSOutputStream alloc] initToFileAtPath:onSaveFile append:YES] : nil;
    58     self.stream = (onSaveFile) ? [[NSOutputStream alloc] initToFileAtPath:onSaveFile append:YES] : nil;
    58     [self.stream open];
    59     [self.stream open];
    59 
    60 
    60     NSInteger ipcPort = [HWUtils randomPort];
    61     NSInteger ipcPort = [HWUtils randomPort];
    61     NSDictionary *config = [[NSDictionary alloc] initWithObjectsAndKeys:
    62     NSDictionary *config = [[NSDictionary alloc] initWithObjectsAndKeys: