| 808 | |
| 809 | #ifdef WIN32 |
| 810 | boost::filesystem::path GetSpecialFolderPath(int nFolder, bool fCreate) |
| 811 | { |
| 812 | namespace fs = boost::filesystem; |
| 813 | |
| 814 | char pszPath[MAX_PATH] = ""; |
| 815 | |
| 816 | if (SHGetSpecialFolderPathA(NULL, pszPath, nFolder, fCreate)) { |
| 817 | return fs::path(pszPath); |
| 818 | } |
| 819 | |
| 820 | LogPrintf("SHGetSpecialFolderPathA() failed, could not obtain requested path.\n"); |
| 821 | return fs::path(""); |
| 822 | } |
| 823 | #endif |
| 824 | |
| 825 | boost::filesystem::path GetTempPath() |
no outgoing calls
no test coverage detected