Rename ConvertPath() to UriDecodePath()

This commit is contained in:
RichardTea
2019-10-14 11:27:34 +01:00
parent 5e84889724
commit 6a6ccc0fb0
3 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -184,7 +184,7 @@ std::string ColladaParser::ReadZaeManifest(ZipArchiveIOSystem &zip_archive) {
return std::string();
aiString ai_str(filepath);
ConvertPath(ai_str);
UriDecodePath(ai_str);
return std::string(ai_str.C_Str());
}
@@ -195,7 +195,7 @@ std::string ColladaParser::ReadZaeManifest(ZipArchiveIOSystem &zip_archive) {
// ------------------------------------------------------------------------------------------------
// Convert a path read from a collada file to the usual representation
void ColladaParser::ConvertPath(aiString& ss)
void ColladaParser::UriDecodePath(aiString& ss)
{
// TODO: collada spec, p 22. Handle URI correctly.
// For the moment we're just stripping the file:// away to make it work.
@@ -1176,7 +1176,7 @@ void ColladaParser::ReadImage(Collada::Image& pImage)
if (sz)
{
aiString filepath(sz);
ConvertPath(filepath);
UriDecodePath(filepath);
pImage.mFileName = filepath.C_Str();
}
TestClosing("init_from");
@@ -1214,7 +1214,7 @@ void ColladaParser::ReadImage(Collada::Image& pImage)
if (sz)
{
aiString filepath(sz);
ConvertPath(filepath);
UriDecodePath(filepath);
pImage.mFileName = filepath.C_Str();
}
TestClosing("ref");