| 1041 | return std::filesystem::exists(GetProjectPath(str)); |
| 1042 | } |
| 1043 | std::string ProjectParser::GetTexturePath(const std::string& texPath, const std::string& oldProjectPath) |
| 1044 | { |
| 1045 | if (std::filesystem::path(texPath).is_absolute()) |
| 1046 | return GetRelativePath(texPath); |
| 1047 | else |
| 1048 | return GetRelativePath(std::filesystem::absolute(std::filesystem::path(oldProjectPath) / texPath).string()); |
| 1049 | } |
| 1050 | void ProjectParser::ResetProjectDirectory() |
| 1051 | { |
| 1052 | m_file = ""; |