mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
filepath: Added clear and isEmpty methods.
This commit is contained in:
@@ -275,6 +275,14 @@ namespace bx
|
||||
return *this;
|
||||
}
|
||||
|
||||
void FilePath::clear()
|
||||
{
|
||||
if (!isEmpty() )
|
||||
{
|
||||
set("");
|
||||
}
|
||||
}
|
||||
|
||||
void FilePath::set(Dir::Enum _dir)
|
||||
{
|
||||
char tmp[kMaxFilePath];
|
||||
@@ -384,6 +392,11 @@ namespace bx
|
||||
;
|
||||
}
|
||||
|
||||
bool FilePath::isEmpty() const
|
||||
{
|
||||
return 0 == strCmp(m_filePath, ".");
|
||||
}
|
||||
|
||||
bool make(const FilePath& _filePath, Error* _err)
|
||||
{
|
||||
BX_ERROR_SCOPE(_err);
|
||||
|
||||
Reference in New Issue
Block a user