diff options
| -rw-r--r-- | engines/sci/include/resource.h | 9 | ||||
| -rw-r--r-- | engines/sci/scicore/tools.cpp | 27 | 
2 files changed, 0 insertions, 36 deletions
| diff --git a/engines/sci/include/resource.h b/engines/sci/include/resource.h index 45a937fd50..bae718021b 100644 --- a/engines/sci/include/resource.h +++ b/engines/sci/include/resource.h @@ -243,15 +243,6 @@ sci_getcwd(void);  ** Returns   : (char *) a malloc'd cwd, or NULL if it couldn't be determined.  */ - -char * -sci_get_homedir(void); -/* Returns the user's home directory -** Parameters: (void) -** Returns   : (char *) Pointer to a static buffer containing the user's home, -**                      or NULL if there is no such thing. -*/ -  int  sci_mkpath(const char *path);  /* Asserts that the specified path is available 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 | 
