MCPcopy Create free account
hub / github.com/OpenMC2/OpenMC2 / get_documents_path

Function get_documents_path

src/Config.cpp:41–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39#include <string>
40
41static boost::filesystem::path get_documents_path() {
42 PWSTR rawPath;
43 if (FAILED(SHGetKnownFolderPath(FOLDERID_Documents, KF_FLAG_CREATE, nullptr, &rawPath)))
44 return boost::filesystem::path();
45 boost::filesystem::path path(rawPath);
46 CoTaskMemFree(rawPath);
47 return path;
48}
49
50constexpr const char *default_paths[] = {
51 ".",

Callers 1

get_config_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected