mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 19:28:43 +12:00
26 lines
No EOL
667 B
C++
26 lines
No EOL
667 B
C++
#pragma once
|
|
#include "vfsFileBase.h"
|
|
|
|
class vfsLocalFile : public vfsFileBase
|
|
{
|
|
private:
|
|
rFile m_file;
|
|
|
|
public:
|
|
vfsLocalFile(vfsDevice* device);
|
|
|
|
virtual bool Open(const std::string& path, vfsOpenMode mode = vfsRead) override;
|
|
virtual bool Create(const std::string& path) override;
|
|
virtual bool Close() override;
|
|
virtual bool Exists(const std::string& path) override;
|
|
|
|
virtual u64 GetSize() override;
|
|
|
|
virtual u64 Write(const void* src, u64 size) override;
|
|
virtual u64 Read(void* dst, u64 size) override;
|
|
|
|
virtual u64 Seek(s64 offset, vfsSeekMode mode = vfsSeekSet) override;
|
|
virtual u64 Tell() const override;
|
|
|
|
virtual bool IsOpened() const override;
|
|
}; |