mirror of
https://github.com/monero-project/monero.git
synced 2025-08-15 17:20:18 -04:00
commented util.h
This commit is contained in:
parent
bf972c40fc
commit
c085e9294f
5 changed files with 102 additions and 44 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue