| 21 | |
| 22 | namespace tgfx { |
| 23 | static 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 | } |
| 28 | std::string ProjectPath::Absolute(const std::string& relativePath) { |
| 29 | std::filesystem::path path = relativePath; |
| 30 | if (path.is_absolute()) { |