fsp_srv: Implement GetSize and SetSize.

This commit is contained in:
bunnei 2018-03-31 16:02:21 -04:00
parent 36cdd5a39c
commit db8fc2ea57
2 changed files with 24 additions and 4 deletions

View file

@ -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() {