mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
3c65283f8f
commit
8e583f58be
@ -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 ******************/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user