quick and dirty implementation for GetFreeSpaceSize

This commit is contained in:
Erwin Spitaler 2023-02-04 15:44:08 +01:00 committed by Billy Laws
parent b20c6e9fc4
commit 2855d12f31
2 changed files with 14 additions and 1 deletions

View File

@ -85,4 +85,10 @@ namespace skyline::service::fssrv {
Result IFileSystem::Commit(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
return {};
}
Result IFileSystem::GetFreeSpaceSize(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
//TODO: proper implementation for GetFreeSpaceSize
response.Push<u64>(90000000);
return {};
}
}

View File

@ -61,6 +61,12 @@ namespace skyline::service::fssrv {
*/
Result Commit(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/**
* @brief Returns the total free space of the filesystem
* @url https://switchbrew.org/wiki/Filesystem_services#GetFreeSpaceSize
*/
Result GetFreeSpaceSize(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
SERVICE_DECL(
SFUNC(0x0, IFileSystem, CreateFile),
SFUNC(0x1, IFileSystem, DeleteFile),
@ -69,7 +75,8 @@ namespace skyline::service::fssrv {
SFUNC(0x7, IFileSystem, GetEntryType),
SFUNC(0x8, IFileSystem, OpenFile),
SFUNC(0x9, IFileSystem, OpenDirectory),
SFUNC(0xA, IFileSystem, Commit)
SFUNC(0xA, IFileSystem, Commit),
SFUNC(0xB, IFileSystem, GetFreeSpaceSize)
)
};
}