diff options
author | Filippos Karapetis | 2009-02-18 10:49:17 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-02-18 10:49:17 +0000 |
commit | fa59ce0d9f6282e08d52209d3afad3cc9f702ebb (patch) | |
tree | 325b83c49802769423e91df3740bed190370f4d0 /engines/sci/scicore | |
parent | 1ccedde91aadc6dea2156e40c0dc094578092cf4 (diff) | |
download | scummvm-rg350-fa59ce0d9f6282e08d52209d3afad3cc9f702ebb.tar.gz scummvm-rg350-fa59ce0d9f6282e08d52209d3afad3cc9f702ebb.tar.bz2 scummvm-rg350-fa59ce0d9f6282e08d52209d3afad3cc9f702ebb.zip |
Removed the unused sci_get_homedir() function
svn-id: r38466
Diffstat (limited to 'engines/sci/scicore')
-rw-r--r-- | engines/sci/scicore/tools.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/engines/sci/scicore/tools.cpp b/engines/sci/scicore/tools.cpp index 98be73cf17..981234fa6a 100644 --- a/engines/sci/scicore/tools.cpp +++ b/engines/sci/scicore/tools.cpp @@ -390,33 +390,6 @@ sci_mkpath(const char *path) { } - -char * -sci_get_homedir(void) { -#ifdef WIN32 - char *_path_buf = (char*)malloc(MAX_PATH); - char *dr = getenv("HOMEDRIVE"); - char *path = getenv("HOMEPATH"); - - if (!dr || !path) - return getenv("WINDIR"); - - strncpy(_path_buf, dr, 4); - strncat(_path_buf, path, MAX_PATH - 4); - - return _path_buf; -#elif defined(__unix__) || !defined(X_DISPLAY_MISSING) || defined (__BEOS__) || defined(MACOSX) - return getenv("HOME"); -#elif defined(__DC__) - return NULL; -#elif defined(__amigaos4__) - return "/PROGDIR/"; -#else -# error Please add a $HOME policy for your platform! -#endif -} - - /*-- Yielding to the scheduler --*/ #ifdef HAVE_SCHED_YIELD |