forked from suyu/suyu
fsp_srv: stub GetCacheStorageSize
This commit is contained in:
parent
155213484b
commit
5b7c0f13d3
2 changed files with 14 additions and 1 deletions
|
@ -707,7 +707,7 @@ FSP_SRV::FSP_SRV(Core::System& system_)
|
||||||
{31, nullptr, "OpenGameCardFileSystem"},
|
{31, nullptr, "OpenGameCardFileSystem"},
|
||||||
{32, nullptr, "ExtendSaveDataFileSystem"},
|
{32, nullptr, "ExtendSaveDataFileSystem"},
|
||||||
{33, nullptr, "DeleteCacheStorage"},
|
{33, nullptr, "DeleteCacheStorage"},
|
||||||
{34, nullptr, "GetCacheStorageSize"},
|
{34, &FSP_SRV::GetCacheStorageSize, "GetCacheStorageSize"},
|
||||||
{35, nullptr, "CreateSaveDataFileSystemByHashSalt"},
|
{35, nullptr, "CreateSaveDataFileSystemByHashSalt"},
|
||||||
{36, nullptr, "OpenHostFileSystemWithOption"},
|
{36, nullptr, "OpenHostFileSystemWithOption"},
|
||||||
{51, &FSP_SRV::OpenSaveDataFileSystem, "OpenSaveDataFileSystem"},
|
{51, &FSP_SRV::OpenSaveDataFileSystem, "OpenSaveDataFileSystem"},
|
||||||
|
@ -1107,6 +1107,18 @@ void FSP_SRV::GetProgramIndexForAccessLog(Kernel::HLERequestContext& ctx) {
|
||||||
rb.Push(access_log_program_index);
|
rb.Push(access_log_program_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FSP_SRV::GetCacheStorageSize(Kernel::HLERequestContext& ctx) {
|
||||||
|
IPC::RequestParser rp{ctx};
|
||||||
|
const auto index{rp.Pop<s32>()};
|
||||||
|
|
||||||
|
LOG_WARNING(Service_FS, "(STUBBED) called with index={}", index);
|
||||||
|
|
||||||
|
IPC::ResponseBuilder rb{ctx, 6};
|
||||||
|
rb.Push(ResultSuccess);
|
||||||
|
rb.Push(s64{0});
|
||||||
|
rb.Push(s64{0});
|
||||||
|
}
|
||||||
|
|
||||||
class IMultiCommitManager final : public ServiceFramework<IMultiCommitManager> {
|
class IMultiCommitManager final : public ServiceFramework<IMultiCommitManager> {
|
||||||
public:
|
public:
|
||||||
explicit IMultiCommitManager(Core::System& system_)
|
explicit IMultiCommitManager(Core::System& system_)
|
||||||
|
|
|
@ -54,6 +54,7 @@ private:
|
||||||
void OutputAccessLogToSdCard(Kernel::HLERequestContext& ctx);
|
void OutputAccessLogToSdCard(Kernel::HLERequestContext& ctx);
|
||||||
void GetProgramIndexForAccessLog(Kernel::HLERequestContext& ctx);
|
void GetProgramIndexForAccessLog(Kernel::HLERequestContext& ctx);
|
||||||
void OpenMultiCommitManager(Kernel::HLERequestContext& ctx);
|
void OpenMultiCommitManager(Kernel::HLERequestContext& ctx);
|
||||||
|
void GetCacheStorageSize(Kernel::HLERequestContext& ctx);
|
||||||
|
|
||||||
FileSystemController& fsc;
|
FileSystemController& fsc;
|
||||||
const FileSys::ContentProvider& content_provider;
|
const FileSys::ContentProvider& content_provider;
|
||||||
|
|
Loading…
Reference in a new issue