Stub GetCacheStorageSize

This commit is contained in:
Dima 2022-11-21 21:17:02 +03:00 committed by Billy Laws
parent 4ab8699cd4
commit f6d95aae01
2 changed files with 9 additions and 0 deletions

View File

@ -21,6 +21,12 @@ namespace skyline::service::fssrv {
return {}; return {};
} }
Result IFileSystemProxy::GetCacheStorageSize(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
response.Push<u64>(0);
response.Push<u64>(0);
return {};
}
Result IFileSystemProxy::OpenSaveDataFileSystem(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { Result IFileSystemProxy::OpenSaveDataFileSystem(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
auto spaceId{request.Pop<SaveDataSpaceId>()}; auto spaceId{request.Pop<SaveDataSpaceId>()};
auto attribute{request.Pop<SaveDataAttribute>()}; auto attribute{request.Pop<SaveDataAttribute>()};

View File

@ -73,6 +73,8 @@ namespace skyline::service::fssrv {
*/ */
Result OpenSdCardFileSystem(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); Result OpenSdCardFileSystem(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
Result GetCacheStorageSize(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/** /**
* @brief Returns a handle to an instance of #IFileSystem * @brief Returns a handle to an instance of #IFileSystem
* @url https://switchbrew.org/wiki/Filesystem_services#IFileSystem for the requested save data area * @url https://switchbrew.org/wiki/Filesystem_services#IFileSystem for the requested save data area
@ -110,6 +112,7 @@ namespace skyline::service::fssrv {
SERVICE_DECL( SERVICE_DECL(
SFUNC(0x1, IFileSystemProxy, SetCurrentProcess), SFUNC(0x1, IFileSystemProxy, SetCurrentProcess),
SFUNC(0x12, IFileSystemProxy, OpenSdCardFileSystem), SFUNC(0x12, IFileSystemProxy, OpenSdCardFileSystem),
SFUNC(0x22, IFileSystemProxy, GetCacheStorageSize),
SFUNC(0x33, IFileSystemProxy, OpenSaveDataFileSystem), SFUNC(0x33, IFileSystemProxy, OpenSaveDataFileSystem),
SFUNC(0x35, IFileSystemProxy, OpenReadOnlySaveDataFileSystem), SFUNC(0x35, IFileSystemProxy, OpenReadOnlySaveDataFileSystem),
SFUNC(0xC8, IFileSystemProxy, OpenDataStorageByCurrentProcess), SFUNC(0xC8, IFileSystemProxy, OpenDataStorageByCurrentProcess),