2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 05:07:43 +00:00

Add handy StringUtils begin/end compare functions

This commit is contained in:
Jack Andersen
2016-08-30 15:13:00 -10:00
parent 735e6b2096
commit f0b1837300
2 changed files with 34 additions and 1 deletions

View File

@@ -123,7 +123,12 @@ void ProjectPath::assign(const ProjectPath& parentPath, const std::string& path)
ProjectPath ProjectPath::getCookedPath(const Database::DataSpecEntry& spec) const
{
ProjectPath woExt = getWithExtension(nullptr, true);
return ProjectPath(m_proj->getProjectCookedPath(spec), woExt.getRelativePath());
ProjectPath ret(m_proj->getProjectCookedPath(spec), woExt.getRelativePath());
if (getAuxInfo().size())
return ret.getWithExtension((_S('.') + getAuxInfo()).c_str());
else
return ret;
}
ProjectPath::Type ProjectPath::getPathType() const