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:
@@ -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
|
||||
|
Reference in New Issue
Block a user