rpcsx/rpcs3/Emu/FS/vfsFileBase.cpp
DH 321d323beb Improved VFS
- Implemended vfsDir.
- Improved vfsDevice.
- Improved vfsFile.
2014-02-16 17:19:06 +02:00

46 lines
591 B
C++

#include "stdafx.h"
#include "vfsFileBase.h"
vfsFileBase::vfsFileBase(vfsDevice* device)
: vfsStream()
, m_device(device)
{
}
vfsFileBase::~vfsFileBase()
{
Close();
}
bool Access(const wxString& path, vfsOpenMode mode)
{
return false;
}
bool vfsFileBase::Open(const wxString& path, vfsOpenMode mode)
{
m_path = path;
m_mode = mode;
vfsStream::Reset();
return true;
}
bool vfsFileBase::Close()
{
m_path = wxEmptyString;
return vfsStream::Close();
}
wxString vfsFileBase::GetPath() const
{
return m_path;
}
vfsOpenMode vfsFileBase::GetOpenMode() const
{
return m_mode;
}