mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12:00
Improved VFS
- Implemended vfsDir. - Improved vfsDevice. - Improved vfsFile.
This commit is contained in:
parent
5d59dae730
commit
321d323beb
36 changed files with 479 additions and 390 deletions
|
@ -2,9 +2,7 @@
|
|||
#include "vfsLocalDir.h"
|
||||
#include <direct.h>
|
||||
|
||||
vfsLocalDir::vfsLocalDir(const wxString& path)
|
||||
: vfsDirBase(path)
|
||||
, m_pos(0)
|
||||
vfsLocalDir::vfsLocalDir(vfsDevice* device) : vfsDirBase(device)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -39,14 +37,6 @@ bool vfsLocalDir::Open(const wxString& path)
|
|||
return true;
|
||||
}
|
||||
|
||||
const DirEntryInfo* vfsLocalDir::Read()
|
||||
{
|
||||
if (m_pos >= m_entries.GetCount())
|
||||
return 0;
|
||||
|
||||
return &m_entries[m_pos++];
|
||||
}
|
||||
|
||||
bool vfsLocalDir::Create(const wxString& path)
|
||||
{
|
||||
return wxFileName::Mkdir(path, 0777, wxPATH_MKDIR_FULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue