diff options
| author | bunnei <bunneidev@gmail.com> | 2018-03-31 16:02:21 -0400 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2018-03-31 16:06:45 -0400 |
| commit | 88582b84a5851338618050e62bdd8b6a1753b5b7 (patch) | |
| tree | c97bc552cb5d4c32a7e345882334acbf693f1cd2 /src/core/file_sys | |
| parent | b27ab46bde8bd0c376747284435fcfa2b35aea75 (diff) | |
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 { } bool Disk_Storage::SetSize(const u64 size) const { - LOG_WARNING(Service_FS, "(STUBBED) called"); - return false; + file->Resize(size); + file->Flush(); + return true; } Disk_Directory::Disk_Directory(const std::string& path) : directory() { |
