mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
25 lines
455 B
C++
25 lines
455 B
C++
#pragma once
|
|
|
|
#include "vfsStream.h"
|
|
|
|
class vfsDevice;
|
|
|
|
struct vfsFileBase : public vfsStream
|
|
{
|
|
protected:
|
|
std::string m_path;
|
|
u32 m_mode;
|
|
vfsDevice* m_device;
|
|
|
|
public:
|
|
vfsFileBase(vfsDevice* device);
|
|
virtual ~vfsFileBase() override;
|
|
|
|
virtual bool Open(const std::string& path, u32 mode);
|
|
virtual bool Close() override;
|
|
virtual bool IsOpened() const override { return !m_path.empty(); }
|
|
|
|
std::string GetPath() const;
|
|
u32 GetOpenMode() const;
|
|
};
|