Added FilePath join.

This commit is contained in:
Branimir Karadžić
2017-07-15 21:21:14 -07:00
parent 3e19793ba9
commit a29a296800
2 changed files with 12 additions and 0 deletions

View File

@@ -223,6 +223,15 @@ namespace bx
);
}
void FilePath::join(const StringView& _str)
{
char tmp[kMaxFilePath];
strCopy(tmp, BX_COUNTOF(tmp), m_filePath);
strCat(tmp, BX_COUNTOF(tmp), "/");
strCat(tmp, BX_COUNTOF(tmp), _str);
set(tmp);
}
const char* FilePath::get() const
{
return m_filePath;