|
|
@ -642,10 +642,9 @@ void PrintExceptionContinue(const std::exception* pex, const char* pszThread)
|
|
|
|
|
|
|
|
|
|
|
|
fs::path GetDefaultDataDir()
|
|
|
|
fs::path GetDefaultDataDir()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Windows < Vista: C:\Documents and Settings\Username\Application Data\Bitcoin
|
|
|
|
// Windows: C:\Users\Username\AppData\Roaming\Bitcoin
|
|
|
|
// Windows >= Vista: C:\Users\Username\AppData\Roaming\Bitcoin
|
|
|
|
// macOS: ~/Library/Application Support/Bitcoin
|
|
|
|
// Mac: ~/Library/Application Support/Bitcoin
|
|
|
|
// Unix-like: ~/.bitcoin
|
|
|
|
// Unix: ~/.bitcoin
|
|
|
|
|
|
|
|
#ifdef WIN32
|
|
|
|
#ifdef WIN32
|
|
|
|
// Windows
|
|
|
|
// Windows
|
|
|
|
return GetSpecialFolderPath(CSIDL_APPDATA) / "Bitcoin";
|
|
|
|
return GetSpecialFolderPath(CSIDL_APPDATA) / "Bitcoin";
|
|
|
@ -657,10 +656,10 @@ fs::path GetDefaultDataDir()
|
|
|
|
else
|
|
|
|
else
|
|
|
|
pathRet = fs::path(pszHome);
|
|
|
|
pathRet = fs::path(pszHome);
|
|
|
|
#ifdef MAC_OSX
|
|
|
|
#ifdef MAC_OSX
|
|
|
|
// Mac
|
|
|
|
// macOS
|
|
|
|
return pathRet / "Library/Application Support/Bitcoin";
|
|
|
|
return pathRet / "Library/Application Support/Bitcoin";
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
// Unix
|
|
|
|
// Unix-like
|
|
|
|
return pathRet / ".bitcoin";
|
|
|
|
return pathRet / ".bitcoin";
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|