mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
37 lines
468 B
C++
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;
|
|
}
|