mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-13 02:52:37 +00:00
Codechange: rename function to better describe its functionality
This commit is contained in:
parent
48dcb79145
commit
66a984afd7
@ -2004,10 +2004,10 @@ static bool GetLanguageFileHeader(const char *file, LanguagePackHeader *hdr)
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a list of languages from the given directory.
|
||||
* @param path the base directory to search in
|
||||
* Search for the languages in the given directory and add them to the #_languages list.
|
||||
* @param path the base directory to search in
|
||||
*/
|
||||
static void GetLanguageList(const std::string &path)
|
||||
static void FillLanguageList(const std::string &path)
|
||||
{
|
||||
DIR *dir = ttd_opendir(path.c_str());
|
||||
if (dir != nullptr) {
|
||||
@ -2042,7 +2042,7 @@ static void GetLanguageList(const std::string &path)
|
||||
void InitializeLanguagePacks()
|
||||
{
|
||||
for (Searchpath sp : _valid_searchpaths) {
|
||||
GetLanguageList(FioGetDirectory(sp, LANG_DIR));
|
||||
FillLanguageList(FioGetDirectory(sp, LANG_DIR));
|
||||
}
|
||||
if (_languages.size() == 0) UserError("No available language packs (invalid versions?)");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user