New directory structure for windoze
This commit is contained in:
15
src/util.cpp
15
src/util.cpp
@@ -514,11 +514,20 @@ boost::filesystem::path GetDefaultDataDir()
|
|||||||
// an old wallet.dat from the Ice Ages :)
|
// an old wallet.dat from the Ice Ages :)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// Windows
|
// Windows
|
||||||
pathRet = GetSpecialFolderPath(CSIDL_APPDATA) / "Komodo" / symbol;
|
pathRet = GetSpecialFolderPath(CSIDL_APPDATA) / "Hush" / symbol;
|
||||||
|
// Always use .hush/HUSH3, if it exists (even if .komodo/HUSH3 exists)
|
||||||
if(fs::is_directory(pathRet)) {
|
if(fs::is_directory(pathRet)) {
|
||||||
// legacy directory, use that
|
return pathRet;
|
||||||
} else {
|
} else {
|
||||||
pathRet = GetSpecialFolderPath(CSIDL_APPDATA) / "Hush" / symbol;
|
pathRet = GetSpecialFolderPath(CSIDL_APPDATA) / "Komodo" / symbol;
|
||||||
|
if(fs::is_directory(pathRet)) {
|
||||||
|
// existing legacy directory, use that for backward compat
|
||||||
|
return pathRet;
|
||||||
|
} else {
|
||||||
|
// For new clones, use Hush/HUSH3
|
||||||
|
pathRet = GetSpecialFolderPath(CSIDL_APPDATA) / "Hush" / symbol;
|
||||||
|
return pathRet;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return pathRet;
|
return pathRet;
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user