[Scummvm-cvs-logs] SF.net SVN: scummvm:[38466] scummvm/trunk/engines/sci
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Wed Feb 18 11:49:18 CET 2009
Revision: 38466
http://scummvm.svn.sourceforge.net/scummvm/?rev=38466&view=rev
Author: thebluegr
Date: 2009-02-18 10:49:17 +0000 (Wed, 18 Feb 2009)
Log Message:
-----------
Removed the unused sci_get_homedir() function
Modified Paths:
--------------
scummvm/trunk/engines/sci/include/resource.h
scummvm/trunk/engines/sci/scicore/tools.cpp
Modified: scummvm/trunk/engines/sci/include/resource.h
===================================================================
--- scummvm/trunk/engines/sci/include/resource.h 2009-02-18 10:37:22 UTC (rev 38465)
+++ scummvm/trunk/engines/sci/include/resource.h 2009-02-18 10:49:17 UTC (rev 38466)
@@ -243,15 +243,6 @@
** 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
Modified: scummvm/trunk/engines/sci/scicore/tools.cpp
===================================================================
--- scummvm/trunk/engines/sci/scicore/tools.cpp 2009-02-18 10:37:22 UTC (rev 38465)
+++ scummvm/trunk/engines/sci/scicore/tools.cpp 2009-02-18 10:49:17 UTC (rev 38466)
@@ -390,33 +390,6 @@
}
-
-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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list