From adf1e34ead8a28d3b11252545130852a9db1acf8 Mon Sep 17 00:00:00 2001 From: bjarni Date: Sun, 13 Jan 2008 17:45:29 +0000 Subject: (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) --- src/fileio.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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; -- cgit v1.2.3-54-g00ecf