mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 01:38:37 +12:00
Implemented vfsLocalDir & vfsDirBase.
Improved ThreadBase. Minor fixes.
This commit is contained in:
parent
16c284214f
commit
beb19633e9
16 changed files with 187 additions and 53 deletions
|
@ -1,3 +1,44 @@
|
|||
#include "stdafx.h"
|
||||
#include "vfsDirBase.h"
|
||||
|
||||
vfsDirBase::vfsDirBase(const wxString& path)
|
||||
{
|
||||
Open(path);
|
||||
}
|
||||
|
||||
vfsDirBase::~vfsDirBase()
|
||||
{
|
||||
}
|
||||
|
||||
bool vfsDirBase::Open(const wxString& path)
|
||||
{
|
||||
if(!IsOpened())
|
||||
Close();
|
||||
|
||||
if(!IsExists(path))
|
||||
return false;
|
||||
|
||||
m_cwd += '/' + path;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool vfsDirBase::IsOpened() const
|
||||
{
|
||||
return !m_cwd.IsEmpty();
|
||||
}
|
||||
|
||||
const Array<DirEntryInfo>& vfsDirBase::GetEntryes() const
|
||||
{
|
||||
return m_entryes;
|
||||
}
|
||||
|
||||
void vfsDirBase::Close()
|
||||
{
|
||||
m_cwd = wxEmptyString;
|
||||
m_entryes.Clear();
|
||||
}
|
||||
|
||||
wxString vfsDirBase::GetPath() const
|
||||
{
|
||||
return m_cwd;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue