project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m
changeset 6083 72c882c0fd0f
parent 6078 8c0cc07731e5
child 6084 e692c0348e74
equal deleted inserted replaced
6082:16ca7a7a6aa6 6083:72c882c0fd0f
    59 }
    59 }
    60 
    60 
    61 #pragma mark -
    61 #pragma mark -
    62 #pragma mark Spawner functions
    62 #pragma mark Spawner functions
    63 -(void) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary {
    63 -(void) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary {
    64     self.stream = [[NSOutputStream alloc] initToFileAtPath:onSaveFile append:YES];
    64     self.stream = (onSaveFile) ? [[NSOutputStream alloc] initToFileAtPath:onSaveFile append:YES] : nil;
    65     [self.stream open];
    65     [self.stream open];
    66 
    66 
    67     [NSThread detachNewThreadSelector:@selector(engineProtocol:)
    67     [NSThread detachNewThreadSelector:@selector(engineProtocol:)
    68                              toTarget:self
    68                              toTarget:self
    69                            withObject:dictionary];
    69                            withObject:dictionary];