MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetSpecialFolderPath

Function GetSpecialFolderPath

src/util.cpp:1136–1147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1134
1135#ifdef WIN32
1136fs::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
1150void runCommand(const std::string& strCommand)

Callers 2

GetDefaultDataDirFunction · 0.85
StartupShortcutPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected