project_files/HedgewarsMobile/Classes/HWUtils.m
changeset 7048 0a4c88935902
parent 6832 fae8fd118da9
child 7302 3eac6e64b20b
equal deleted inserted replaced
7047:606acf1f80be 7048:0a4c88935902
   155     [testConnection release];
   155     [testConnection release];
   156 
   156 
   157     return ((isReachable && !needsConnection) || nonWiFi) ? testResult : NO;
   157     return ((isReachable && !needsConnection) || nonWiFi) ? testResult : NO;
   158 }
   158 }
   159 
   159 
       
   160 /*
   160 +(UIView *)mainSDLViewInstance {
   161 +(UIView *)mainSDLViewInstance {
   161     SDL_Window *window = HW_getSDLWindow();
   162     SDL_Window *window = HW_getSDLWindow();
   162     if (window == NULL) {
   163     if (window == NULL) {
   163         SDL_SetError("Window does not exist");
   164         SDL_SetError("Window does not exist");
   164         return nil;
   165         return nil;
   165     }
   166     }
   166     SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
   167     SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
   167     SDL_uikitview *view = data != NULL ? data->view : nil;
   168     SDL_uikitview *view = data != NULL ? data->view : nil;
   168     return view;
   169     return view;
   169 }
   170 }
       
   171 */
   170 
   172 
   171 @end
   173 @end