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
|
#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 ******************/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user