diff options
author | jebes <psteidelprogramming@gmail.com> | 2014-09-09 20:18:23 -0400 |
---|---|---|
committer | jebes <psteidelprogramming@gmail.com> | 2014-09-09 20:18:23 -0400 |
commit | c085e9294f096ebcfe3e02f1c9a99959f66ba1a2 (patch) | |
tree | 0fc73ea562bd3a0621ad421300c92798d16d16ee /src/common/util.cpp | |
parent | Merge pull request #123 from fluffypony/master (diff) | |
download | monero-c085e9294f096ebcfe3e02f1c9a99959f66ba1a2.tar.xz |
commented util.h
Diffstat (limited to '')
-rw-r--r-- | src/common/util.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common/util.cpp b/src/common/util.cpp index e5276d1e4..d2ff90679 100644 --- a/src/common/util.cpp +++ b/src/common/util.cpp @@ -313,17 +313,19 @@ std::string get_nix_version_display_string() return ""; } #endif - + std::string get_default_data_dir() { - //namespace fs = boost::filesystem; + /* Please for the love of god refactor the ifdefs out of this */ + + // namespace fs = boost::filesystem; // Windows < Vista: C:\Documents and Settings\Username\Application Data\CRYPTONOTE_NAME // Windows >= Vista: C:\Users\Username\AppData\Roaming\CRYPTONOTE_NAME // Mac: ~/Library/Application Support/CRYPTONOTE_NAME // Unix: ~/.CRYPTONOTE_NAME std::string config_folder; + #ifdef WIN32 - // Windows config_folder = get_special_folder_path(CSIDL_APPDATA, true) + "/" + CRYPTONOTE_NAME; #else std::string pathRet; |