mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-19 13:33:00 +01:00
Added FilePath join.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user