| 718 | |
| 719 | #ifdef WIN32 |
| 720 | boost::filesystem::path GetSpecialFolderPath(int nFolder, bool fCreate) |
| 721 | { |
| 722 | namespace fs = boost::filesystem; |
| 723 | |
| 724 | char pszPath[MAX_PATH] = ""; |
| 725 | |
| 726 | if(SHGetSpecialFolderPathA(NULL, pszPath, nFolder, fCreate)) |
| 727 | { |
| 728 | return fs::path(pszPath); |
| 729 | } |
| 730 | |
| 731 | LogPrintf("SHGetSpecialFolderPathA() failed, could not obtain requested path.\n"); |
| 732 | return fs::path(""); |
| 733 | } |
| 734 | #endif |
| 735 | |
| 736 | void runCommand(std::string strCommand) |
no outgoing calls
no test coverage detected