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 | adf1e34ead8a28d3b11252545130852a9db1acf8 (patch) | |
tree | 1226711de5b5d3e261a7b64e82ac20eca9c3619b /src | |
parent | 6c4ebd91ea9ba320df367b6e7ae30d0a5ec1015c (diff) | |
download | openttd-adf1e34ead8a28d3b11252545130852a9db1acf8.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; |