comparison src/util.c @ 6848:060aa79a733e

[gaim-migrate @ 7393] Using SHGetFolderPath to determine windows gaim home directory committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Mon, 15 Sep 2003 21:30:37 +0000
parents 338147ea6896
children 4ae5d9c3d9ec
comparison
equal deleted inserted replaced
6847:7de1b559cbbb 6848:060aa79a733e
639 } 639 }
640 } 640 }
641 641
642 const gchar *gaim_home_dir() 642 const gchar *gaim_home_dir()
643 { 643 {
644 #ifndef _WIN32
644 if(g_get_home_dir()) 645 if(g_get_home_dir())
645 return g_get_home_dir(); 646 return g_get_home_dir();
646 else 647 else
647 #ifndef _WIN32
648 return NULL; 648 return NULL;
649 #else 649 #else
650 /* Win9x and WinME don't have a home dir */ 650 return wgaim_data_dir();
651 return "C:";
652 #endif 651 #endif
653
654 } 652 }
655 653
656 /* returns a string of the form ~/.gaim, where ~ is replaced by the user's home 654 /* returns a string of the form ~/.gaim, where ~ is replaced by the user's home
657 * dir. Note that there is no trailing slash after .gaim. */ 655 * dir. Note that there is no trailing slash after .gaim. */
658 gchar *gaim_user_dir() 656 gchar *gaim_user_dir()