MCPcopy Create free account
hub / github.com/LUX-Core/lux / GetSpecialFolderPath

Function GetSpecialFolderPath

src/util.cpp:810–822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808
809#ifdef WIN32
810boost::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
825boost::filesystem::path GetTempPath()

Callers 2

GetDefaultDataDirFunction · 0.85
StartupShortcutPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected