mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-05 08:10:10 +01:00
27 lines
594 B
C++
27 lines
594 B
C++
#pragma once
|
|
#include "vfsFileBase.h"
|
|
|
|
class vfsLocalFile : public vfsFileBase
|
|
{
|
|
private:
|
|
wxFile m_file;
|
|
|
|
public:
|
|
vfsLocalFile();
|
|
vfsLocalFile(const wxString path, vfsOpenMode mode = vfsRead);
|
|
vfsDevice* GetNew();
|
|
|
|
virtual bool Open(const wxString& path, vfsOpenMode mode = vfsRead);
|
|
virtual bool Create(const wxString& path);
|
|
virtual bool Close();
|
|
|
|
virtual u64 GetSize();
|
|
|
|
virtual u32 Write(const void* src, u32 size);
|
|
virtual u32 Read(void* dst, u32 size);
|
|
|
|
virtual u64 Seek(s64 offset, vfsSeekMode mode = vfsSeekSet);
|
|
virtual u64 Tell() const;
|
|
|
|
virtual bool IsOpened() const;
|
|
}; |