mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-26 12:14:20 +01:00
Stub IFile:Flush
This commit is contained in:
parent
c69efed2ad
commit
9d90cd877c
@ -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>());
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user