MCPcopy Create free account
hub / github.com/dfranx/SHADERed / GetTexturePath

Method GetTexturePath

src/SHADERed/Objects/ProjectParser.cpp:1043–1049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 = "";

Callers

nothing calls this directly

Calls 1

stringMethod · 0.45

Tested by

no test coverage detected