From: <tz...@us...> - 2006-07-30 06:04:07
|
Revision: 1863 Author: tzlaine Date: 2006-07-29 23:04:03 -0700 (Sat, 29 Jul 2006) ViewCVS: http://svn.sourceforge.net/freeorion?rev=1863&view=rev Log Message: ----------- Changed the win32 location of config and save files from the user's home directory to APPDATA. Modified Paths: -------------- trunk/FreeOrion/util/Directories.cpp Modified: trunk/FreeOrion/util/Directories.cpp =================================================================== --- trunk/FreeOrion/util/Directories.cpp 2006-07-29 22:14:39 UTC (rev 1862) +++ trunk/FreeOrion/util/Directories.cpp 2006-07-30 06:04:03 UTC (rev 1863) @@ -104,7 +104,7 @@ { if (fs::path::default_name_check_writable()) fs::path::default_name_check(fs::native); - static fs::path p = fs::path(std::string(getenv("HOMEDRIVE")) + getenv("HOMEPATH")) / "FreeOrion"; + static fs::path p = fs::path(std::string(getenv("APPDATA"))) / "FreeOrion"; return p; } |
From: <tz...@us...> - 2007-07-21 17:12:58
|
Revision: 2191 http://svn.sourceforge.net/freeorion/revision/?rev=2191&view=rev Author: tzlaine Date: 2007-07-21 10:13:00 -0700 (Sat, 21 Jul 2007) Log Message: ----------- Changed call to br_find_data_dir() back to br_find_bin_dir(), which was accidentally changed in a recent commit (cut and paste error). This fixes an infinite recursion in the installed FO on Linux. Modified Paths: -------------- trunk/FreeOrion/util/Directories.cpp Modified: trunk/FreeOrion/util/Directories.cpp =================================================================== --- trunk/FreeOrion/util/Directories.cpp 2007-07-21 06:22:40 UTC (rev 2190) +++ trunk/FreeOrion/util/Directories.cpp 2007-07-21 17:13:00 UTC (rev 2191) @@ -69,7 +69,7 @@ const fs::path GetBinDir() { if (!g_initialized) InitDirs(); - char* dir_name = br_find_data_dir("/usr/local/bin"); + char* dir_name = br_find_bin_dir("/usr/local/bin"); fs::path p(dir_name); std::free(dir_name); // if the path does not exist, we fall back to the working directory |