Skip to content

Commit

Permalink
Fixing windows app path.
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed Jan 18, 2015
1 parent f9c2a8a commit 99d6911
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion rai/plat/windows/working.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -17,5 +17,6 @@ boost::filesystem::path working_path ()
{
assert (false);
}
return result;
}
}

0 comments on commit 99d6911

Please sign in to comment.