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