| 940 | |
| 941 | #ifdef WIN32 |
| 942 | boost::filesystem::path GetSpecialFolderPath(int nFolder, bool fCreate) { |
| 943 | namespace fs = boost::filesystem; |
| 944 | |
| 945 | char pszPath[MAX_PATH] = ""; |
| 946 | |
| 947 | if (SHGetSpecialFolderPathA(NULL, pszPath, nFolder, fCreate)) { |
| 948 | return fs::path(pszPath); |
| 949 | } |
| 950 | |
| 951 | LogPrint(BCLog::INFO, "SHGetSpecialFolderPathA() failed, could not obtain requested path.\n"); |
| 952 | return fs::path(""); |
| 953 | } |
| 954 | #endif |
| 955 | |
| 956 | boost::filesystem::path GetTempPath() { |
no test coverage detected