Stub IFile:Flush

This commit is contained in:
Billy Laws 2020-08-09 14:53:29 +01:00 committed by ◱ PixelyIon
parent c69efed2ad
commit 9d90cd877c
2 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,7 @@ namespace skyline::service::fssrv {
IFile::IFile(std::shared_ptr<vfs::Backing> &backing, const DeviceState &state, ServiceManager &manager) : backing(backing), BaseService(state, manager, Service::fssrv_IFile, "fssrv:IFile", { IFile::IFile(std::shared_ptr<vfs::Backing> &backing, const DeviceState &state, ServiceManager &manager) : backing(backing), BaseService(state, manager, Service::fssrv_IFile, "fssrv:IFile", {
{0x0, SFUNC(IFile::Read)}, {0x0, SFUNC(IFile::Read)},
{0x1, SFUNC(IFile::Write)}, {0x1, SFUNC(IFile::Write)},
{0x2, SFUNC(IFile::Flush)},
{0x3, SFUNC(IFile::SetSize)}, {0x3, SFUNC(IFile::SetSize)},
{0x4, SFUNC(IFile::GetSize)} {0x4, SFUNC(IFile::GetSize)}
}) {} }) {}
@ -63,6 +64,8 @@ namespace skyline::service::fssrv {
} }
} }
void IFile::Flush(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {}
void IFile::SetSize(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { void IFile::SetSize(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
backing->Resize(request.Pop<u64>()); backing->Resize(request.Pop<u64>());
} }

View File

@ -28,6 +28,11 @@ namespace skyline::service::fssrv {
*/ */
void Write(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); void Write(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/**
* @brief This flushes any written data to the IFile
*/
void Flush(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/** /**
* @brief This sets the size of an IFile * @brief This sets the size of an IFile
*/ */