From 5ea4c5e074baeb283012467c3d5abd8cda7cf3b5 Mon Sep 17 00:00:00 2001 From: CooleRRSA Date: Wed, 10 Jan 2018 12:41:52 +0300 Subject: [PATCH] Datafolder fix *Changed default datafolder to 'CraveNG'. --- CHANGELOG | 7 +++++++ configure.ac | 2 +- src/clientversion.h | 2 +- src/util.cpp | 12 ++++++------ 4 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 CHANGELOG diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..e716262 --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,7 @@ +v2.5.0.0 +-------- +*Initial release for coinswap. + +v2.5.0.1 +-------- +*Changed default datafolder to 'CraveNG'. \ No newline at end of file diff --git a/configure.ac b/configure.ac index e361da4..cad7ea3 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) diff --git a/src/clientversion.h b/src/clientversion.h index c841459..b8c30de 100644 --- a/src/clientversion.h +++ b/src/clientversion.h @@ -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 diff --git a/src/util.cpp b/src/util.cpp index 4e0dc9f..9517bcc 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -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"); @@ -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 }