From f6d95aae016afe28d8e1df74f4cf646419aee383 Mon Sep 17 00:00:00 2001 From: Dima Date: Mon, 21 Nov 2022 21:17:02 +0300 Subject: [PATCH] Stub GetCacheStorageSize --- .../main/cpp/skyline/services/fssrv/IFileSystemProxy.cpp | 6 ++++++ app/src/main/cpp/skyline/services/fssrv/IFileSystemProxy.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/app/src/main/cpp/skyline/services/fssrv/IFileSystemProxy.cpp b/app/src/main/cpp/skyline/services/fssrv/IFileSystemProxy.cpp index ec793bfe..21f103f5 100644 --- a/app/src/main/cpp/skyline/services/fssrv/IFileSystemProxy.cpp +++ b/app/src/main/cpp/skyline/services/fssrv/IFileSystemProxy.cpp @@ -21,6 +21,12 @@ namespace skyline::service::fssrv { return {}; } + Result IFileSystemProxy::GetCacheStorageSize(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { + response.Push(0); + response.Push(0); + return {}; + } + Result IFileSystemProxy::OpenSaveDataFileSystem(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { auto spaceId{request.Pop()}; auto attribute{request.Pop()}; diff --git a/app/src/main/cpp/skyline/services/fssrv/IFileSystemProxy.h b/app/src/main/cpp/skyline/services/fssrv/IFileSystemProxy.h index ba40c4f2..9f36c80c 100644 --- a/app/src/main/cpp/skyline/services/fssrv/IFileSystemProxy.h +++ b/app/src/main/cpp/skyline/services/fssrv/IFileSystemProxy.h @@ -73,6 +73,8 @@ namespace skyline::service::fssrv { */ 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 * @url https://switchbrew.org/wiki/Filesystem_services#IFileSystem for the requested save data area @@ -110,6 +112,7 @@ namespace skyline::service::fssrv { SERVICE_DECL( SFUNC(0x1, IFileSystemProxy, SetCurrentProcess), SFUNC(0x12, IFileSystemProxy, OpenSdCardFileSystem), + SFUNC(0x22, IFileSystemProxy, GetCacheStorageSize), SFUNC(0x33, IFileSystemProxy, OpenSaveDataFileSystem), SFUNC(0x35, IFileSystemProxy, OpenReadOnlySaveDataFileSystem), SFUNC(0xC8, IFileSystemProxy, OpenDataStorageByCurrentProcess),