Changeset 8792 for trunk/libtransmission/platform.c
- Timestamp:
- Jul 9, 2009, 6:18:14 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/platform.c
r8163 r8792 18 18 #include <CoreFoundation/CoreFoundation.h> 19 19 #endif 20 20 #ifdef __HAIKU__ 21 #include <FindDirectory.h> 22 #endif 21 23 #define _XOPEN_SOURCE 600 /* needed for recursive locks. */ 22 24 #ifndef __USE_UNIX98 … … 272 274 SHGetFolderPath( NULL, CSIDL_APPDATA, NULL, 0, appdata ); 273 275 path = tr_buildPath( appdata, "Transmission", NULL ); 276 #elif defined( __HAIKU__ ) 277 char buf[MAX_PATH_LENGTH]; 278 find_directory( B_USER_SETTINGS_DIRECTORY, -1, true, buf, sizeof(buf) ); 279 path = tr_buildPath( buf, "Transmission", NULL ); 274 280 #else 275 281 path = tr_buildPath( getHomeDir( ), ".transmission", NULL ); … … 432 438 SHGetFolderPath( NULL, CSIDL_APPDATA, NULL, 0, appdata ); 433 439 s = tr_buildPath( appdata, appname, NULL ); 440 #elif defined( __HAIKU__ ) 441 char buf[MAX_PATH_LENGTH]; 442 find_directory( B_USER_SETTINGS_DIRECTORY, -1, true, buf, sizeof(buf) ); 443 s = tr_buildPath( buf, appname, NULL ); 434 444 #else 435 445 if( ( s = getenv( "XDG_CONFIG_HOME" ) ) ) … … 487 497 488 498 if( user_dir == NULL ) 499 #ifdef __HAIKU__ 500 user_dir = tr_buildPath( getHomeDir( ), "Desktop", NULL ); 501 #else 489 502 user_dir = tr_buildPath( getHomeDir( ), "Downloads", NULL ); 503 #endif 490 504 491 505 tr_free( content );
Note: See TracChangeset
for help on using the changeset viewer.