Skip to content

Commit

Permalink
Update default data dir
Browse files Browse the repository at this point in the history
Add drivechain_launcher_sidechains subdirectory for all platforms
  • Loading branch information
CryptAxe authored Feb 25, 2024
1 parent 93b9209 commit 3fef476
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ fs::path GetDefaultDataDir()
// Unix: ~/.bitcoin
#ifdef WIN32
// Windows
return GetSpecialFolderPath(CSIDL_APPDATA) / "Testchain";
return GetSpecialFolderPath(CSIDL_APPDATA) / "drivechain_launcher_sidechains" / "Testchain";
#else
fs::path pathRet;
char* pszHome = getenv("HOME");
Expand All @@ -590,10 +590,10 @@ fs::path GetDefaultDataDir()
pathRet = fs::path(pszHome);
#ifdef MAC_OSX
// Mac
return pathRet / "Library/Application Support/Testchain";
return pathRet / "Library/Application Support/drivechain_launcher_sidechains/Testchain";
#else
// Unix
return pathRet / ".testchain";
return pathRet / "drivechain_launcher_sidechains" / ".testchain";
#endif
#endif
}
Expand Down

0 comments on commit 3fef476

Please sign in to comment.