rpcs3/rpcs3/Emu/FS/vfsFileBase.cpp
Nekotekina b3e3c68f15 File utility improved
+ minor fixes
2016-01-13 14:12:04 +03:00

37 lines
468 B
C++

#include "stdafx.h"
#include "vfsFileBase.h"
vfsFileBase::vfsFileBase(vfsDevice* device)
: vfsStream()
, m_device(device)
{
}
vfsFileBase::~vfsFileBase()
{
Close();
}
bool vfsFileBase::Open(const std::string& path, u32 mode)
{
m_path = path;
m_mode = mode;
return true;
}
void vfsFileBase::Close()
{
m_path = "";
vfsStream::Close();
}
std::string vfsFileBase::GetPath() const
{
return m_path;
}
u32 vfsFileBase::GetOpenMode() const
{
return m_mode;
}