diff options
author | bjarni <bjarni@openttd.org> | 2008-01-13 17:45:29 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2008-01-13 17:45:29 +0000 |
commit | e281180d06d7ed527d0f40259d072e476cc51790 (patch) | |
tree | 1226711de5b5d3e261a7b64e82ac20eca9c3619b /src | |
parent | ef219245affa80a144508eabe4f578ad78581ba3 (diff) | |
download | openttd-e281180d06d7ed527d0f40259d072e476cc51790.tar.xz |
(svn r11837) -Feature: [OSX] added "/Library/Application Support/OpenTTD" to the search paths (based on patch by pv2b)
It is possible to set this to something else setting shared-dir with config
This works on other OSes as well but it's off by default (and not really tested)
Diffstat (limited to 'src')
-rw-r--r-- | src/fileio.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp index 12ee60868..34b3cf835 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -646,7 +646,14 @@ void DetermineBasePaths(const char *exe) _searchpaths[SP_PERSONAL_DIR] = strdup(tmp); #endif + +#if defined(WITH_SHARED_DIR) + snprintf(tmp, MAX_PATH, "%s", SHARED_DIR); + AppendPathSeparator(tmp, MAX_PATH); + _searchpaths[SP_SHARED_DIR] = strdup(tmp); +#else _searchpaths[SP_SHARED_DIR] = NULL; +#endif #if defined(__MORPHOS__) || defined(__AMIGA__) _searchpaths[SP_WORKING_DIR] = NULL; |