Changed path for the DHT bootstrap file to RetroShare's exe dir for Windows.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3742 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-11-03 01:33:49 +00:00
parent 3c65283f8f
commit 8e583f58be

View File

@ -845,22 +845,25 @@ std::string RsInit::getRetroshareDataDirectory()
#endif
#else
if (RsInitConfig::portable)
{
/* For Windows Portable, files must be in the data directory */
dataDirectory = "Data";
std::cerr << "getRetroshareDataDirectory() WINDOWS PORTABLE: " << dataDirectory;
std::cerr << std::endl;
}
else
{
/* For Windows: environment variable APPDATA should be suitable */
dataDirectory = getenv("APPDATA");
dataDirectory += "\\RetroShare";
// if (RsInitConfig::portable)
// {
// /* For Windows Portable, files must be in the data directory */
// dataDirectory = "Data";
// std::cerr << "getRetroshareDataDirectory() WINDOWS PORTABLE: " << dataDirectory;
// std::cerr << std::endl;
// }
// else
// {
// /* For Windows: environment variable APPDATA should be suitable */
// dataDirectory = getenv("APPDATA");
// dataDirectory += "\\RetroShare";
//
// std::cerr << "getRetroshareDataDirectory() WINDOWS: " << dataDirectory;
// std::cerr << std::endl;
// }
std::cerr << "getRetroshareDataDirectory() WINDOWS: " << dataDirectory;
std::cerr << std::endl;
}
/* Use RetroShare's exe dir */
dataDirectory = ".";
#endif
/******************************** WINDOWS/UNIX SPECIFIC PART ******************/