MCPcopy Create free account
hub / github.com/Tencent/tgfx / GetRootPath

Function GetRootPath

test/src/utils/ProjectPath.cpp:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22namespace tgfx {
23static std::string GetRootPath() {
24 std::filesystem::path filePath = __FILE__;
25 auto dir = filePath.parent_path().string();
26 return std::filesystem::path(dir + "/../../..").lexically_normal();
27}
28std::string ProjectPath::Absolute(const std::string& relativePath) {
29 std::filesystem::path path = relativePath;
30 if (path.is_absolute()) {

Callers 1

AbsoluteMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected