project_files/HedgewarsMobile/Classes/HWUtils.m
branchios-revival
changeset 11219 c51ecb9bcf05
parent 11206 2e80c9861818
child 11554 73e6a3d2f768
equal deleted inserted replaced
11218:08f20ffa5801 11219:c51ecb9bcf05
   153     [testConnection release];
   153     [testConnection release];
   154 
   154 
   155     return ((isReachable && !needsConnection) || nonWiFi) ? testResult : NO;
   155     return ((isReachable && !needsConnection) || nonWiFi) ? testResult : NO;
   156 }
   156 }
   157 
   157 
       
   158 + (NSString *)languageID
       
   159 {
       
   160     NSString *language = [[NSLocale preferredLanguages] firstObject];
       
   161     return [[language componentsSeparatedByString:@"-"] firstObject];
       
   162 }
       
   163 
   158 /*
   164 /*
   159 +(UIView *)mainSDLViewInstance {
   165 +(UIView *)mainSDLViewInstance {
   160     SDL_Window *window = HW_getSDLWindow();
   166     SDL_Window *window = HW_getSDLWindow();
   161     if (window == NULL) {
   167     if (window == NULL) {
   162         SDL_SetError("Window does not exist");
   168         SDL_SetError("Window does not exist");