| 26 | return std::filesystem::path(dir + "/../../..").lexically_normal(); |
| 27 | } |
| 28 | std::string ProjectPath::Absolute(const std::string& relativePath) { |
| 29 | std::filesystem::path path = relativePath; |
| 30 | if (path.is_absolute()) { |
| 31 | return path; |
| 32 | } |
| 33 | static const std::string rootPath = GetRootPath() + "/"; |
| 34 | return std::filesystem::path(rootPath + relativePath).lexically_normal(); |
| 35 | } |
| 36 | |
| 37 | } // namespace tgfx |
nothing calls this directly
no test coverage detected