equal
deleted
inserted
replaced
277 } |
277 } |
278 |
278 |
279 // Get descriptive texts. |
279 // Get descriptive texts. |
280 // Returns a path as well as a |
280 // Returns a path as well as a |
281 // string describing the path. |
281 // string describing the path. |
282 StringID FiosGetDescText(char **path) |
282 StringID FiosGetDescText(const char **path) |
283 { |
283 { |
284 *path = _fios_path[0] ? _fios_path : "/"; |
284 *path = _fios_path[0] ? _fios_path : "/"; |
285 |
285 |
286 #if defined(__linux__) |
286 #if defined(__linux__) |
287 { |
287 { |
358 return access(filename, 0) == 0; |
358 return access(filename, 0) == 0; |
359 } |
359 } |
360 |
360 |
361 static int LanguageCompareFunc(const void *a, const void *b) |
361 static int LanguageCompareFunc(const void *a, const void *b) |
362 { |
362 { |
363 return strcmp(*(char**)a, *(char**)b); |
363 return strcmp(*(const char* const *)a, *(const char* const *)b); |
364 } |
364 } |
365 |
365 |
366 int GetLanguageList(char **languages, int max) |
366 int GetLanguageList(char **languages, int max) |
367 { |
367 { |
368 DIR *dir; |
368 DIR *dir; |