Add ProjectPath::ensureAuxInfo

This commit is contained in:
Jack Andersen 2016-04-05 15:43:16 -10:00
parent 41dbd30970
commit bbaf33e4de
2 changed files with 11 additions and 4 deletions

View File

@ -730,10 +730,8 @@ private:
m_iboSz(iboData.size()*4), m_iboData(new uint8_t[iboData.size()*4]),
m_surfaces(std::move(surfaces)), m_skinBanks(skinBanks)
{
{
athena::io::MemoryWriter w(m_iboData.get(), m_iboSz);
w.enumerateLittle(iboData);
}
athena::io::MemoryWriter w(m_iboData.get(), m_iboSz);
w.enumerateLittle(iboData);
}
public:
HMDLMeta m_meta;

View File

@ -1064,6 +1064,15 @@ public:
#endif
}
/**
* @brief Construct a path with the aux info overwritten with specified string
* @param auxStr string to replace existing auxInfo with
*/
hecl::ProjectPath ensureAuxInfo(const SystemChar* auxStr) const
{
return hecl::ProjectPath(getProject(), getRelativePath() + _S('|') + auxStr);
}
/**
* @brief Type of path
*/