1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-21 13:39:09 +00:00

(svn r9271) -Codechange: make the language pack initialisation a little more clear and extendable (more language paths).

This commit is contained in:
rubidium
2007-03-17 22:21:05 +00:00
parent abf601a1ef
commit 7fb3b4f83e
5 changed files with 137 additions and 86 deletions

View File

@@ -362,6 +362,7 @@ void DeterminePaths(const char *exe)
/* Sets the search path for lng files to the custom one */
_paths.lang_dir = MallocT<char>(MAX_PATH);
ttd_strlcpy(_paths.lang_dir, CUSTOM_LANG_DIR, MAX_PATH);
AppendPathSeparator(_paths.lang_dir, MAX_PATH);
#else
_paths.lang_dir = str_fmt("%slang" PATHSEP, _paths.game_data_dir);
#endif