diff options
author | Subv <subv2112@gmail.com> | 2015-12-28 16:03:09 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2016-03-20 20:28:17 +0100 |
commit | 96f0e32f836b19edb3d14ce4f87a7aed1ac6a8e1 (patch) | |
tree | 9eed35100efe7714f7ef5a39ff2c3bbf897f3dae /src/core/file_sys/file_backend.h | |
parent | HLE/FS: Corrected the error codes for DeleteFile (diff) | |
download | yuzu-96f0e32f836b19edb3d14ce4f87a7aed1ac6a8e1.tar yuzu-96f0e32f836b19edb3d14ce4f87a7aed1ac6a8e1.tar.gz yuzu-96f0e32f836b19edb3d14ce4f87a7aed1ac6a8e1.tar.bz2 yuzu-96f0e32f836b19edb3d14ce4f87a7aed1ac6a8e1.tar.lz yuzu-96f0e32f836b19edb3d14ce4f87a7aed1ac6a8e1.tar.xz yuzu-96f0e32f836b19edb3d14ce4f87a7aed1ac6a8e1.tar.zst yuzu-96f0e32f836b19edb3d14ce4f87a7aed1ac6a8e1.zip |
Diffstat (limited to 'src/core/file_sys/file_backend.h')
-rw-r--r-- | src/core/file_sys/file_backend.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/file_sys/file_backend.h b/src/core/file_sys/file_backend.h index df7165df3..21864a73c 100644 --- a/src/core/file_sys/file_backend.h +++ b/src/core/file_sys/file_backend.h @@ -7,6 +7,7 @@ #include <cstddef> #include "common/common_types.h" +#include "core/hle/result.h" //////////////////////////////////////////////////////////////////////////////////////////////////// // FileSys namespace @@ -29,9 +30,9 @@ public: * @param offset Offset in bytes to start reading data from * @param length Length in bytes of data to read from file * @param buffer Buffer to read data into - * @return Number of bytes read + * @return Number of bytes read, or error code */ - virtual size_t Read(u64 offset, size_t length, u8* buffer) const = 0; + virtual ResultVal<size_t> Read(u64 offset, size_t length, u8* buffer) const = 0; /** * Write data to the file @@ -39,9 +40,9 @@ public: * @param length Length in bytes of data to write to file * @param flush The flush parameters (0 == do not flush) * @param buffer Buffer to read data from - * @return Number of bytes written + * @return Number of bytes written, or error code */ - virtual size_t Write(u64 offset, size_t length, bool flush, const u8* buffer) const = 0; + virtual ResultVal<size_t> Write(u64 offset, size_t length, bool flush, const u8* buffer) const = 0; /** * Get the size of the file in bytes |