Directory-related functions implemented

* cellFsOpendir, cellFsReaddir, cellFsClosedir functions implemented.
* vfsDirBase: m_entryes, GetEntryes renamed to m_entries, GetEntries
respectively.
* vfsLocalDir: Read() function added to get the entries one by one.
* Moved IsExists() from vfsLocalDir to vfsDirBase to avoid "R6025 pure
virtual function call" error.
* Other minor changes in some functions of sys_fs
This commit is contained in:
Alexandro Sánchez Bach 2014-02-09 22:53:48 +01:00
parent 27a4e6a2b6
commit 4d98826259
8 changed files with 88 additions and 36 deletions

View file

@ -27,15 +27,20 @@ bool vfsDirBase::IsOpened() const
return !m_cwd.IsEmpty();
}
const Array<DirEntryInfo>& vfsDirBase::GetEntryes() const
bool vfsDirBase::IsExists(const wxString& path) const
{
return m_entryes;
return wxDirExists(path);
}
const Array<DirEntryInfo>& vfsDirBase::GetEntries() const
{
return m_entries;
}
void vfsDirBase::Close()
{
m_cwd = wxEmptyString;
m_entryes.Clear();
m_entries.Clear();
}
wxString vfsDirBase::GetPath() const