summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp14
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.h1
2 files changed, 14 insertions, 1 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp
index e23eae36a..c08274ef9 100644
--- a/src/core/hle/service/filesystem/fsp_srv.cpp
+++ b/src/core/hle/service/filesystem/fsp_srv.cpp
@@ -707,7 +707,7 @@ FSP_SRV::FSP_SRV(Core::System& system_)
707 {31, nullptr, "OpenGameCardFileSystem"}, 707 {31, nullptr, "OpenGameCardFileSystem"},
708 {32, nullptr, "ExtendSaveDataFileSystem"}, 708 {32, nullptr, "ExtendSaveDataFileSystem"},
709 {33, nullptr, "DeleteCacheStorage"}, 709 {33, nullptr, "DeleteCacheStorage"},
710 {34, nullptr, "GetCacheStorageSize"}, 710 {34, &FSP_SRV::GetCacheStorageSize, "GetCacheStorageSize"},
711 {35, nullptr, "CreateSaveDataFileSystemByHashSalt"}, 711 {35, nullptr, "CreateSaveDataFileSystemByHashSalt"},
712 {36, nullptr, "OpenHostFileSystemWithOption"}, 712 {36, nullptr, "OpenHostFileSystemWithOption"},
713 {51, &FSP_SRV::OpenSaveDataFileSystem, "OpenSaveDataFileSystem"}, 713 {51, &FSP_SRV::OpenSaveDataFileSystem, "OpenSaveDataFileSystem"},
@@ -1107,6 +1107,18 @@ void FSP_SRV::GetProgramIndexForAccessLog(Kernel::HLERequestContext& ctx) {
1107 rb.Push(access_log_program_index); 1107 rb.Push(access_log_program_index);
1108} 1108}
1109 1109
1110void FSP_SRV::GetCacheStorageSize(Kernel::HLERequestContext& ctx) {
1111 IPC::RequestParser rp{ctx};
1112 const auto index{rp.Pop<s32>()};
1113
1114 LOG_WARNING(Service_FS, "(STUBBED) called with index={}", index);
1115
1116 IPC::ResponseBuilder rb{ctx, 6};
1117 rb.Push(ResultSuccess);
1118 rb.Push(s64{0});
1119 rb.Push(s64{0});
1120}
1121
1110class IMultiCommitManager final : public ServiceFramework<IMultiCommitManager> { 1122class IMultiCommitManager final : public ServiceFramework<IMultiCommitManager> {
1111public: 1123public:
1112 explicit IMultiCommitManager(Core::System& system_) 1124 explicit IMultiCommitManager(Core::System& system_)
diff --git a/src/core/hle/service/filesystem/fsp_srv.h b/src/core/hle/service/filesystem/fsp_srv.h
index 36f552e05..3d88b97f9 100644
--- a/src/core/hle/service/filesystem/fsp_srv.h
+++ b/src/core/hle/service/filesystem/fsp_srv.h
@@ -54,6 +54,7 @@ private:
54 void OutputAccessLogToSdCard(Kernel::HLERequestContext& ctx); 54 void OutputAccessLogToSdCard(Kernel::HLERequestContext& ctx);
55 void GetProgramIndexForAccessLog(Kernel::HLERequestContext& ctx); 55 void GetProgramIndexForAccessLog(Kernel::HLERequestContext& ctx);
56 void OpenMultiCommitManager(Kernel::HLERequestContext& ctx); 56 void OpenMultiCommitManager(Kernel::HLERequestContext& ctx);
57 void GetCacheStorageSize(Kernel::HLERequestContext& ctx);
57 58
58 FileSystemController& fsc; 59 FileSystemController& fsc;
59 const FileSys::ContentProvider& content_provider; 60 const FileSys::ContentProvider& content_provider;