equal
deleted
inserted
replaced
1226 #ifdef ENABLE_NETWORK |
1226 #ifdef ENABLE_NETWORK |
1227 extern void SortNetworkLanguages(); |
1227 extern void SortNetworkLanguages(); |
1228 #else /* ENABLE_NETWORK */ |
1228 #else /* ENABLE_NETWORK */ |
1229 static inline void SortNetworkLanguages() {} |
1229 static inline void SortNetworkLanguages() {} |
1230 #endif /* ENABLE_NETWORK */ |
1230 #endif /* ENABLE_NETWORK */ |
1231 extern void SortTownGeneratorNames(); |
|
1232 |
1231 |
1233 bool ReadLanguagePack(int lang_index) |
1232 bool ReadLanguagePack(int lang_index) |
1234 { |
1233 { |
1235 int tot_count, i; |
1234 int tot_count, i; |
1236 size_t len; |
1235 size_t len; |
1284 ttd_strlcpy(_dynlang.curr_file, c_file, lengthof(_dynlang.curr_file)); |
1283 ttd_strlcpy(_dynlang.curr_file, c_file, lengthof(_dynlang.curr_file)); |
1285 |
1284 |
1286 _dynlang.curr = lang_index; |
1285 _dynlang.curr = lang_index; |
1287 SetCurrentGrfLangID(_langpack->isocode); |
1286 SetCurrentGrfLangID(_langpack->isocode); |
1288 SortNetworkLanguages(); |
1287 SortNetworkLanguages(); |
1289 SortTownGeneratorNames(); |
|
1290 return true; |
1288 return true; |
1291 } |
1289 } |
1292 |
1290 |
1293 /* Win32 implementation in win32.cpp. */ |
1291 /* Win32 implementation in win32.cpp. */ |
1294 /* OS X implementation in os/macosx/macos.mm. */ |
1292 /* OS X implementation in os/macosx/macos.mm. */ |