Skip to content

Commit

Permalink
Datafolder fix
Browse files Browse the repository at this point in the history
*Changed default datafolder to 'CraveNG'.
  • Loading branch information
CooleRRSA committed Jan 10, 2018
1 parent bdcbfbf commit 5ea4c5e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG
@@ -0,0 +1,7 @@
v2.5.0.0
--------
*Initial release for coinswap.

v2.5.0.1
--------
*Changed default datafolder to 'CraveNG'.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -3,7 +3,7 @@ AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 2)
define(_CLIENT_VERSION_MINOR, 5)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_BUILD, 0)
define(_CLIENT_VERSION_BUILD, 1)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2017)
AC_INIT([Crave],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION],[www.crave.org],[crave])
Expand Down
2 changes: 1 addition & 1 deletion src/clientversion.h
Expand Up @@ -18,7 +18,7 @@
#define CLIENT_VERSION_MAJOR 2
#define CLIENT_VERSION_MINOR 5
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD 0
#define CLIENT_VERSION_BUILD 1

//! Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true
Expand Down
12 changes: 6 additions & 6 deletions src/util.cpp
Expand Up @@ -424,13 +424,13 @@ void PrintExceptionContinue(std::exception* pex, const char* pszThread)
boost::filesystem::path GetDefaultDataDir()
{
namespace fs = boost::filesystem;
// Windows < Vista: C:\Documents and Settings\Username\Application Data\Crave
// Windows >= Vista: C:\Users\Username\AppData\Roaming\Crave
// Mac: ~/Library/Application Support/Crave
// Windows < Vista: C:\Documents and Settings\Username\Application Data\CraveNG
// Windows >= Vista: C:\Users\Username\AppData\Roaming\CraveNG
// Mac: ~/Library/Application Support/CraveNG
// Unix: ~/.crave
#ifdef WIN32
// Windows
return GetSpecialFolderPath(CSIDL_APPDATA) / "Crave";
return GetSpecialFolderPath(CSIDL_APPDATA) / "CraveNG";
#else
fs::path pathRet;
char* pszHome = getenv("HOME");
Expand All @@ -442,10 +442,10 @@ boost::filesystem::path GetDefaultDataDir()
// Mac
pathRet /= "Library/Application Support";
TryCreateDirectory(pathRet);
return pathRet / "Crave";
return pathRet / "CraveNG";
#else
// Unix
return pathRet / ".crave";
return pathRet / ".craveng";
#endif
#endif
}
Expand Down

0 comments on commit 5ea4c5e

Please sign in to comment.