| 1134 | |
| 1135 | #ifdef WIN32 |
| 1136 | fs::path GetSpecialFolderPath(int nFolder, bool fCreate) |
| 1137 | { |
| 1138 | char pszPath[MAX_PATH] = ""; |
| 1139 | |
| 1140 | if(SHGetSpecialFolderPathA(nullptr, pszPath, nFolder, fCreate)) |
| 1141 | { |
| 1142 | return fs::path(pszPath); |
| 1143 | } |
| 1144 | |
| 1145 | LogPrintf("SHGetSpecialFolderPathA() failed, could not obtain requested path.\n"); |
| 1146 | return fs::path(""); |
| 1147 | } |
| 1148 | #endif |
| 1149 | |
| 1150 | void runCommand(const std::string& strCommand) |
no outgoing calls
no test coverage detected