#1406: need tr_getDefaultDownloadDir() for consistency between apps

This commit is contained in:
Charles Kerr
2008-11-15 17:39:54 +00:00
parent af91ad11eb
commit f8a7c4b347
9 changed files with 53 additions and 37 deletions
-13
View File
@@ -490,19 +490,6 @@ tr_loadFile( const char * path,
return buf;
}
char*
tr_getcwd( void )
{
char buf[2048];
*buf = '\0';
#ifdef WIN32
_getcwd( buf, sizeof( buf ) );
#else
getcwd( buf, sizeof( buf ) );
#endif
return tr_strdup( buf );
}
char*
tr_basename( const char * path )
{