|
|
@ -118,9 +118,13 @@ public:
|
|
|
|
explicit IFile(Core::System& system_, FileSys::VirtualFile backend_)
|
|
|
|
explicit IFile(Core::System& system_, FileSys::VirtualFile backend_)
|
|
|
|
: ServiceFramework{system_, "IFile"}, backend(std::move(backend_)) {
|
|
|
|
: ServiceFramework{system_, "IFile"}, backend(std::move(backend_)) {
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
{0, &IFile::Read, "Read"}, {1, &IFile::Write, "Write"},
|
|
|
|
{0, &IFile::Read, "Read"},
|
|
|
|
{2, &IFile::Flush, "Flush"}, {3, &IFile::SetSize, "SetSize"},
|
|
|
|
{1, &IFile::Write, "Write"},
|
|
|
|
{4, &IFile::GetSize, "GetSize"}, {5, nullptr, "OperateRange"},
|
|
|
|
{2, &IFile::Flush, "Flush"},
|
|
|
|
|
|
|
|
{3, &IFile::SetSize, "SetSize"},
|
|
|
|
|
|
|
|
{4, &IFile::GetSize, "GetSize"},
|
|
|
|
|
|
|
|
{5, nullptr, "OperateRange"},
|
|
|
|
|
|
|
|
{6, nullptr, "OperateRangeWithBuffer"},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
RegisterHandlers(functions);
|
|
|
|
RegisterHandlers(functions);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -708,7 +712,10 @@ FSP_SRV::FSP_SRV(Core::System& system_)
|
|
|
|
{84, nullptr, "ListApplicationAccessibleSaveDataOwnerId"},
|
|
|
|
{84, nullptr, "ListApplicationAccessibleSaveDataOwnerId"},
|
|
|
|
{85, nullptr, "OpenSaveDataTransferManagerForSaveDataRepair"},
|
|
|
|
{85, nullptr, "OpenSaveDataTransferManagerForSaveDataRepair"},
|
|
|
|
{86, nullptr, "OpenSaveDataMover"},
|
|
|
|
{86, nullptr, "OpenSaveDataMover"},
|
|
|
|
|
|
|
|
{87, nullptr, "OpenSaveDataTransferManagerForRepair"},
|
|
|
|
{100, nullptr, "OpenImageDirectoryFileSystem"},
|
|
|
|
{100, nullptr, "OpenImageDirectoryFileSystem"},
|
|
|
|
|
|
|
|
{101, nullptr, "OpenBaseFileSystem"},
|
|
|
|
|
|
|
|
{102, nullptr, "FormatBaseFileSystem"},
|
|
|
|
{110, nullptr, "OpenContentStorageFileSystem"},
|
|
|
|
{110, nullptr, "OpenContentStorageFileSystem"},
|
|
|
|
{120, nullptr, "OpenCloudBackupWorkStorageFileSystem"},
|
|
|
|
{120, nullptr, "OpenCloudBackupWorkStorageFileSystem"},
|
|
|
|
{130, nullptr, "OpenCustomStorageFileSystem"},
|
|
|
|
{130, nullptr, "OpenCustomStorageFileSystem"},
|
|
|
@ -764,10 +771,12 @@ FSP_SRV::FSP_SRV(Core::System& system_)
|
|
|
|
{1008, nullptr, "OpenRegisteredUpdatePartition"},
|
|
|
|
{1008, nullptr, "OpenRegisteredUpdatePartition"},
|
|
|
|
{1009, nullptr, "GetAndClearMemoryReportInfo"},
|
|
|
|
{1009, nullptr, "GetAndClearMemoryReportInfo"},
|
|
|
|
{1010, nullptr, "SetDataStorageRedirectTarget"},
|
|
|
|
{1010, nullptr, "SetDataStorageRedirectTarget"},
|
|
|
|
{1011, &FSP_SRV::GetAccessLogVersionInfo, "GetAccessLogVersionInfo"},
|
|
|
|
{1011, &FSP_SRV::GetProgramIndexForAccessLog, "GetProgramIndexForAccessLog"},
|
|
|
|
{1012, nullptr, "GetFsStackUsage"},
|
|
|
|
{1012, nullptr, "GetFsStackUsage"},
|
|
|
|
{1013, nullptr, "UnsetSaveDataRootPath"},
|
|
|
|
{1013, nullptr, "UnsetSaveDataRootPath"},
|
|
|
|
{1014, nullptr, "OutputMultiProgramTagAccessLog"},
|
|
|
|
{1014, nullptr, "OutputMultiProgramTagAccessLog"},
|
|
|
|
|
|
|
|
{1016, nullptr, "FlushAccessLogOnSdCard"},
|
|
|
|
|
|
|
|
{1017, nullptr, "OutputApplicationInfoAccessLog"},
|
|
|
|
{1100, nullptr, "OverrideSaveDataTransferTokenSignVerificationKey"},
|
|
|
|
{1100, nullptr, "OverrideSaveDataTransferTokenSignVerificationKey"},
|
|
|
|
{1110, nullptr, "CorruptSaveDataFileSystemBySaveDataSpaceId2"},
|
|
|
|
{1110, nullptr, "CorruptSaveDataFileSystemBySaveDataSpaceId2"},
|
|
|
|
{1200, &FSP_SRV::OpenMultiCommitManager, "OpenMultiCommitManager"},
|
|
|
|
{1200, &FSP_SRV::OpenMultiCommitManager, "OpenMultiCommitManager"},
|
|
|
@ -1051,7 +1060,7 @@ void FSP_SRV::OutputAccessLogToSdCard(Kernel::HLERequestContext& ctx) {
|
|
|
|
rb.Push(RESULT_SUCCESS);
|
|
|
|
rb.Push(RESULT_SUCCESS);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void FSP_SRV::GetAccessLogVersionInfo(Kernel::HLERequestContext& ctx) {
|
|
|
|
void FSP_SRV::GetProgramIndexForAccessLog(Kernel::HLERequestContext& ctx) {
|
|
|
|
LOG_DEBUG(Service_FS, "called");
|
|
|
|
LOG_DEBUG(Service_FS, "called");
|
|
|
|
|
|
|
|
|
|
|
|
IPC::ResponseBuilder rb{ctx, 4};
|
|
|
|
IPC::ResponseBuilder rb{ctx, 4};
|
|
|
|