diff options
| author | 2018-03-31 16:02:21 -0400 | |
|---|---|---|
| committer | 2018-03-31 16:06:45 -0400 | |
| commit | 88582b84a5851338618050e62bdd8b6a1753b5b7 (patch) | |
| tree | c97bc552cb5d4c32a7e345882334acbf693f1cd2 /src/core/file_sys | |
| parent | memory: Fix stack region. (diff) | |
| download | yuzu-88582b84a5851338618050e62bdd8b6a1753b5b7.tar.gz yuzu-88582b84a5851338618050e62bdd8b6a1753b5b7.tar.xz yuzu-88582b84a5851338618050e62bdd8b6a1753b5b7.zip | |
fsp_srv: Implement GetSize and SetSize.
Diffstat (limited to 'src/core/file_sys')
| -rw-r--r-- | src/core/file_sys/disk_filesystem.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/file_sys/disk_filesystem.cpp b/src/core/file_sys/disk_filesystem.cpp index 3a4b45721..4235f3935 100644 --- a/src/core/file_sys/disk_filesystem.cpp +++ b/src/core/file_sys/disk_filesystem.cpp | |||
| @@ -174,8 +174,9 @@ u64 Disk_Storage::GetSize() const { | |||
| 174 | } | 174 | } |
| 175 | 175 | ||
| 176 | bool Disk_Storage::SetSize(const u64 size) const { | 176 | bool Disk_Storage::SetSize(const u64 size) const { |
| 177 | LOG_WARNING(Service_FS, "(STUBBED) called"); | 177 | file->Resize(size); |
| 178 | return false; | 178 | file->Flush(); |
| 179 | return true; | ||
| 179 | } | 180 | } |
| 180 | 181 | ||
| 181 | Disk_Directory::Disk_Directory(const std::string& path) : directory() { | 182 | Disk_Directory::Disk_Directory(const std::string& path) : directory() { |