equal
deleted
inserted
replaced
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"); |