Renamed Directory::SetDirectory to Directory::SetPath
Added Directory::GetPath Former-commit-id: 0d2918557962b05ea7c9a16c82e6afc961db32a8
This commit is contained in:
@@ -30,13 +30,15 @@ namespace
|
||||
}
|
||||
|
||||
NzDirectory::NzDirectory() :
|
||||
m_pattern('*')
|
||||
m_pattern('*'),
|
||||
m_impl(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
NzDirectory::NzDirectory(const NzString& dirPath) :
|
||||
m_dirPath(dirPath),
|
||||
m_pattern('*')
|
||||
m_pattern('*'),
|
||||
m_impl(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -67,6 +69,13 @@ bool NzDirectory::Exists() const
|
||||
return Exists(m_dirPath);
|
||||
}
|
||||
|
||||
NzString NzDirectory::GetPath() const
|
||||
{
|
||||
NazaraLock(m_mutex);
|
||||
|
||||
return m_dirPath;
|
||||
}
|
||||
|
||||
NzString NzDirectory::GetPattern() const
|
||||
{
|
||||
NazaraLock(m_mutex);
|
||||
@@ -193,7 +202,7 @@ bool NzDirectory::Open()
|
||||
return true;
|
||||
}
|
||||
|
||||
void NzDirectory::SetDirectory(const NzString& dirPath)
|
||||
void NzDirectory::SetPath(const NzString& dirPath)
|
||||
{
|
||||
NazaraLock(m_mutex);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user