diff options
author | Lioncash <mathew1800@gmail.com> | 2020-12-10 07:31:58 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-12-10 07:44:43 +0100 |
commit | b1657b8c6b4ef07dd6eea92f4559a32ca3e0894a (patch) | |
tree | 6de62e6d506fb1867794956b52d3c2abde6054bd /src/core/file_sys/vfs_offset.h | |
parent | Merge pull request #5179 from ReinUsesLisp/fs-path (diff) | |
download | yuzu-b1657b8c6b4ef07dd6eea92f4559a32ca3e0894a.tar yuzu-b1657b8c6b4ef07dd6eea92f4559a32ca3e0894a.tar.gz yuzu-b1657b8c6b4ef07dd6eea92f4559a32ca3e0894a.tar.bz2 yuzu-b1657b8c6b4ef07dd6eea92f4559a32ca3e0894a.tar.lz yuzu-b1657b8c6b4ef07dd6eea92f4559a32ca3e0894a.tar.xz yuzu-b1657b8c6b4ef07dd6eea92f4559a32ca3e0894a.tar.zst yuzu-b1657b8c6b4ef07dd6eea92f4559a32ca3e0894a.zip |
Diffstat (limited to 'src/core/file_sys/vfs_offset.h')
-rw-r--r-- | src/core/file_sys/vfs_offset.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/file_sys/vfs_offset.h b/src/core/file_sys/vfs_offset.h index f7b7a3256..b2ccc5c7b 100644 --- a/src/core/file_sys/vfs_offset.h +++ b/src/core/file_sys/vfs_offset.h @@ -17,14 +17,14 @@ namespace FileSys { // the size of this wrapper. class OffsetVfsFile : public VfsFile { public: - OffsetVfsFile(std::shared_ptr<VfsFile> file, std::size_t size, std::size_t offset = 0, + OffsetVfsFile(VirtualFile file, std::size_t size, std::size_t offset = 0, std::string new_name = "", VirtualDir new_parent = nullptr); ~OffsetVfsFile() override; std::string GetName() const override; std::size_t GetSize() const override; bool Resize(std::size_t new_size) override; - std::shared_ptr<VfsDirectory> GetContainingDirectory() const override; + VirtualDir GetContainingDirectory() const override; bool IsWritable() const override; bool IsReadable() const override; std::size_t Read(u8* data, std::size_t length, std::size_t offset) const override; @@ -42,7 +42,7 @@ public: private: std::size_t TrimToFit(std::size_t r_size, std::size_t r_offset) const; - std::shared_ptr<VfsFile> file; + VirtualFile file; std::size_t offset; std::size_t size; std::string name; |