From 99d6911169bdf3126601d02709fc5314fa3b6334 Mon Sep 17 00:00:00 2001 From: clemahieu Date: Sat, 17 Jan 2015 18:24:17 -0600 Subject: [PATCH] Fixing windows app path. --- CMakeLists.txt | 2 +- rai/plat/windows/working.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f192b77a8..56294888f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,7 +109,7 @@ add_executable (qt_system set (CPACK_PACKAGE_VERSION_MAJOR "4") set (CPACK_PACKAGE_VERSION_MINOR "0") -set (CPACK_PACKAGE_VERSION_PATCH "1") +set (CPACK_PACKAGE_VERSION_PATCH "2") SET (ACTIVE_NETWORK rai_active_network CACHE STRING "Selects which network parameters are used") set_property (CACHE ACTIVE_NETWORK PROPERTY STRINGS rai_test_network rai_beta_network rai_live_network) diff --git a/rai/plat/windows/working.cpp b/rai/plat/windows/working.cpp index 4cff25c89c..41eed97f48 100644 --- a/rai/plat/windows/working.cpp +++ b/rai/plat/windows/working.cpp @@ -8,7 +8,7 @@ boost::filesystem::path working_path () { boost::filesystem::path result; WCHAR path[MAX_PATH]; - if (SUCCEEDED(SHGetFolderPathW(NULL, CSIDL_PROFILE, NULL, 0, path))) + if (SUCCEEDED(SHGetFolderPathW(NULL, CSIDL_LOCAL_APPDATA, NULL, 0, path))) { result = boost::filesystem::path (path); result /= "RaiBlocks"; @@ -17,5 +17,6 @@ boost::filesystem::path working_path () { assert (false); } + return result; } } \ No newline at end of file