diff options
| author | 2014-09-27 19:16:51 +0000 | |
|---|---|---|
| committer | 2014-10-06 19:58:37 +0200 | |
| commit | 23c2fbfc7a900ae3c9f8791a87c5ad672f5778fe (patch) | |
| tree | f5535cf4b4bde9054f0e1098eb1fd817b5ff1599 /src/core/file_sys/file.h | |
| parent | FileSys: Add forgotten docstrings. (diff) | |
| download | yuzu-23c2fbfc7a900ae3c9f8791a87c5ad672f5778fe.tar.gz yuzu-23c2fbfc7a900ae3c9f8791a87c5ad672f5778fe.tar.xz yuzu-23c2fbfc7a900ae3c9f8791a87c5ad672f5778fe.zip | |
FileSys/Kernel: Implement SetSize service call for File objects.
Diffstat (limited to 'src/core/file_sys/file.h')
| -rw-r--r-- | src/core/file_sys/file.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/file_sys/file.h b/src/core/file_sys/file.h index 3749e4fcf..443e65319 100644 --- a/src/core/file_sys/file.h +++ b/src/core/file_sys/file.h | |||
| @@ -44,6 +44,13 @@ public: | |||
| 44 | virtual size_t GetSize() const = 0; | 44 | virtual size_t GetSize() const = 0; |
| 45 | 45 | ||
| 46 | /** | 46 | /** |
| 47 | * Set the size of the file in bytes | ||
| 48 | * @param size New size of the file | ||
| 49 | * @return true if successful | ||
| 50 | */ | ||
| 51 | virtual bool SetSize(const u64 size) const = 0; | ||
| 52 | |||
| 53 | /** | ||
| 47 | * Close the file | 54 | * Close the file |
| 48 | * @return true if the file closed correctly | 55 | * @return true if the file closed correctly |
| 49 | */ | 56 | */ |