Filesystem services: Difference between revisions
No edit summary |
No edit summary |
||
| (53 intermediate revisions by 4 users not shown) | |||
| Line 16: | Line 16: | ||
Takes a type-0x19 input buffer containing a [[#FspPath]] and an input [[NCM_services#ProgramId|ProgramId]]. Returns an [[#IFileSystem]]. | Takes a type-0x19 input buffer containing a [[#FspPath]] and an input [[NCM_services#ProgramId|ProgramId]]. Returns an [[#IFileSystem]]. | ||
[10.0.0+] | [10.0.0+] Now takes an additional type-0x1A output buffer. | ||
[16.0.0+] | [16.0.0+] Now takes an additional input [[#ContentAttributes]]. | ||
[17.0.0+] | [17.0.0+] Now takes a type-0x6 output buffer instead of a type-0x1A output buffer. | ||
[20.0.0+] Now no longer takes a type-0x19 input buffer containing a [[#FspPath]] and instead takes an input [[NCM_services#StorageId|StorageId]]. | |||
== IsArchivedProgram == | == IsArchivedProgram == | ||
| Line 45: | Line 47: | ||
== RegisterProgram == | == RegisterProgram == | ||
Takes | Takes an input [[NCM_services#StorageId|StorageId]], an input u64 ProcessId, an input [[NCM_services#ProgramId|ProgramId]], a type-0x5 input buffer containing an [[NPDM#ACID|ACID]] [[NPDM#FsAccessControl|FsAccessControl]], and a type-0x5 input buffer containing an [[NPDM#ACI0|ACI0]] [[NPDM#FsAccessControl|FsAccessControl]]. | ||
Final FS permissions are stored as (ACI0_perms & ACID_perms). Will panic(svcBreak) when buffer sizes from ipc-rawdata are invalid. | Final FS permissions are stored as (ACI0_perms & ACID_perms). Will panic(svcBreak) when buffer sizes from ipc-rawdata are invalid. | ||
[20.0.0+] Now takes an additional input [[#FsAccessControlRestrictionMode]]. | |||
== UnregisterProgram == | == UnregisterProgram == | ||
Takes | Takes an input u64 ProcessId. No output. | ||
Removes registered FS permissions for that PID. | |||
== SetEnabledProgramVerification == | == SetEnabledProgramVerification == | ||
Takes an input bool. No output. | |||
When the flag is zero, it will set ret=0 instead of ret={error} when verifying the fixed-key [[NPDM]] ACID signature fails. This also skips verifying the [[NCA_Format|NCA Header]] signature using the ACID key. Note that if verifying the fixed-key ACID signature is successful, and verifying the ACID-key NCA header signature fails, it will throw an error and abort. | When the flag is zero, it will set ret=0 instead of ret={error} when verifying the fixed-key [[NPDM]] ACID signature fails. This also skips verifying the [[NCA_Format|NCA Header]] signature using the ACID key. Note that if verifying the fixed-key ACID signature is successful, and verifying the ACID-key NCA header signature fails, it will throw an error and abort. | ||
| Line 125: | Line 131: | ||
|- | |- | ||
| 37 || [14.0.0+] CreateSaveDataFileSystemWithCreationInfo2 | | 37 || [14.0.0+] CreateSaveDataFileSystemWithCreationInfo2 | ||
|- | |||
| 38 || [20.0.0+] DetachSdCard | |||
|- | |||
| 39 || [21.0.0+] ShutdownStorage | |||
|- | |||
| 40 || [21.0.0+] FixSaveDataCertificate | |||
|- | |- | ||
| 51 || [[#OpenSaveDataFileSystem]] | | 51 || [[#OpenSaveDataFileSystem]] | ||
| Line 175: | Line 187: | ||
|- | |- | ||
| 87 || [11.0.0+] [[#OpenSaveDataTransferManagerForRepair]] | | 87 || [11.0.0+] [[#OpenSaveDataTransferManagerForRepair]] | ||
|- | |||
| 88 || [21.0.0+] OpenSaveDataTransferManagerForSaveDataRepairWithPolicy | |||
|- | |- | ||
| 100 || OpenImageDirectoryFileSystem | | 100 || OpenImageDirectoryFileSystem | ||
| Line 209: | Line 223: | ||
|- | |- | ||
| 501 || [[#OpenGameCardDetectionEventNotifier]] | | 501 || [[#OpenGameCardDetectionEventNotifier]] | ||
|- | |||
| 502 || [20.0.0+] OpenSdCardAwakenReadyEventNotifier | |||
|- | |- | ||
| 503 || [19.0.0+] OpenGameCardAwakenReadyEventNotifier | | 503 || [19.0.0+] OpenGameCardAwakenReadyEventNotifier | ||
| Line 262: | Line 278: | ||
| 631 || [4.0.0+] IsSdCardAccessible | | 631 || [4.0.0+] IsSdCardAccessible | ||
|- | |- | ||
| 632 || [19.0.0+] | | 632 || [19.0.0+] TestExternalKey | ||
|- | |- | ||
| 640 || [4.0.0-7.0.1] IsSignedSystemPartitionOnSdCardValid | | 640 || [4.0.0-7.0.1] IsSignedSystemPartitionOnSdCardValid | ||
|- | |||
| 650 || [S2] RegisterTicketVersionKeys | |||
|- | |||
| 651 || [S2] RegisterCpDeviceUniqueKey | |||
|- | |||
| 660 || [S2] GetProcessEnvironmentSource | |||
|- | |- | ||
| 700 || [5.0.0+] [[#OpenAccessFailureDetectionEventNotifier]] | | 700 || [5.0.0+] [[#OpenAccessFailureDetectionEventNotifier]] | ||
| Line 276: | Line 298: | ||
| 720 || [5.0.0+] AbandonAccessFailure | | 720 || [5.0.0+] AbandonAccessFailure | ||
|- | |- | ||
| 800 || [2.0.0+] GetAndClearErrorInfo | | 800 || [2.0.0+] [[#GetAndClearErrorInfo]] | ||
|- | |- | ||
| 810 || [7.0.0+] RegisterProgramIndexMapInfo | | 810 || [7.0.0+] RegisterProgramIndexMapInfo | ||
| Line 288: | Line 310: | ||
| 1002 || [[#SetSaveDataRootPath]] | | 1002 || [[#SetSaveDataRootPath]] | ||
|- | |- | ||
| 1003 || DisableAutoSaveDataCreation | | 1003 || [1.0.0-21.2.0] DisableAutoSaveDataCreation | ||
|- | |- | ||
| 1004 || [[#SetGlobalAccessLogMode]] | | 1004 || [[#SetGlobalAccessLogMode]] | ||
| Line 341: | Line 363: | ||
Note that the functions check whether or not at least one bit is set in the mask. This means that, you don't need to set 0xFFFFFFFFFFFFFFFF to get all permissions: it suffices to set 0x8000000000000000. | Note that the functions check whether or not at least one bit is set in the mask. This means that, you don't need to set 0xFFFFFFFFFFFFFFFF to get all permissions: it suffices to set 0x8000000000000000. | ||
If nn::spl::IsDebugMode() is disabled (retail behavior), the FS sysmodule masks the permission descriptor with 0x3FFFFFFFFFFFFFFF upon process registration. | |||
If the code were to request an invalid input type, panic. But this never happens. | If the code were to request an invalid input type, panic. But this never happens. | ||
| Line 379: | Line 403: | ||
| 0xD || CanMountBisSystem || 0x8000000000008080 || RW || [[#OpenBisFileSystem]] | | 0xD || CanMountBisSystem || 0x8000000000008080 || RW || [[#OpenBisFileSystem]] | ||
|- | |- | ||
| 0xE || | | [21.0.0+] 0xE || CanMountBisUserProperPartition || 0x8000000000008080 || RW || [[#OpenBisFileSystem]] | ||
|- | |- | ||
| 0xF || | | [21.0.0+] 0xF || CanMountBisSystemProperEncryption || 0x8000000000000080 || RW || [[#OpenBisFileSystem]] | ||
|- | |- | ||
| 0x10 || | | [21.0.0+] 0x10 || CanMountBisSystemProperPartition || 0x8000000000008080 || RW || [[#OpenBisFileSystem]] | ||
|- | |- | ||
| 0x11 || | | [21.0.0+] 0x11 ([-20.5.0] 0x10) || CanMountSdCard || 0xC000000000200000 || RW || [[#OpenSdCardFileSystem]] | ||
|- | |- | ||
| 0x12 || | | [21.0.0+] 0x12 ([-20.5.0] 0x11) || CanMountGameCard || 0x8000000000000010 || R- || [[#OpenGameCardFileSystem]] | ||
|- | |- | ||
| 0x13 || | | [21.0.0+] 0x13 ([-20.5.0] 0x12) || CanMountDeviceSaveData || 0x8000000000040020 || RW || [[#OpenSaveDataFileSystem]] | ||
|- | |- | ||
| 0x14 || | | [21.0.0+] 0x14 ([-20.5.0] 0x13) || CanMountSystemSaveData || 0x8000000000000028 || RW || [[#OpenSaveDataFileSystemBySystemSaveDataId]] | ||
|- | |- | ||
| 0x15 || | | [21.0.0+] 0x15 ([-20.5.0] 0x14) || CanMountOthersSaveData || 0x8000000000000020 || RW || [[#OpenSaveDataFileSystem]] | ||
|- | |- | ||
| 0x16 || | | [21.0.0+] 0x16 ([-20.5.0] 0x15) || CanMountOthersSystemSaveData || 0x8000000000000020 || RW || [[#OpenSaveDataFileSystemBySystemSaveDataId]] | ||
|- | |- | ||
| 0x17 || | | [21.0.0+] 0x17 ([-20.5.0] 0x16) || CanOpenBisPartitionBootPartition1Root || 0x8000000000010082 || RW || [[#OpenBisStorage]] | ||
|- | |- | ||
| 0x18 || | | [21.0.0+] 0x18 ([-20.5.0] 0x17) || CanOpenBisPartitionBootPartition2Root || 0x8000000000010080 || RW || [[#OpenBisStorage]] | ||
|- | |- | ||
| 0x19 || | | [21.0.0+] 0x19 ([-20.5.0] 0x18) || CanOpenBisPartitionUserDataRoot || 0x8000000000000080 || RW || [[#OpenBisStorage]] | ||
|- | |- | ||
| 0x1A || | | [21.0.0+] 0x1A ([-20.5.0] 0x19) || CanOpenBisPartitionBootConfigAndPackage2Part1 || 0x8000000000010080 || RW || [[#OpenBisStorage]] | ||
|- | |- | ||
| 0x1B || | | [21.0.0+] 0x1B ([-20.5.0] 0x1A) || CanOpenBisPartitionBootConfigAndPackage2Part2 || 0x8000000000010080 || RW || [[#OpenBisStorage]] | ||
|- | |- | ||
| 0x1C || | | [21.0.0+] 0x1C ([-20.5.0] 0x1B) || CanOpenBisPartitionBootConfigAndPackage2Part3 || 0x8000000000010080 || RW || [[#OpenBisStorage]] | ||
|- | |- | ||
| 0x1D || | | [21.0.0+] 0x1D ([-20.5.0] 0x1C) || CanOpenBisPartitionBootConfigAndPackage2Part4 || 0x8000000000010080 || RW || [[#OpenBisStorage]] | ||
|- | |- | ||
| 0x1E || | | [21.0.0+] 0x1E ([-20.5.0] 0x1D) || CanOpenBisPartitionBootConfigAndPackage2Part5 || 0x8000000000010080 || RW || [[#OpenBisStorage]] | ||
|- | |- | ||
| 0x1F || | | [21.0.0+] 0x1F ([-20.5.0] 0x1E) || CanOpenBisPartitionBootConfigAndPackage2Part6 || 0x8000000000010080 || RW || [[#OpenBisStorage]] | ||
|- | |- | ||
| 0x20 || | | [21.0.0+] 0x20 ([-20.5.0] 0x1F) || CanOpenBisPartitionCalibrationBinary || 0x8000000000000084 || RW || [[#OpenBisStorage]] | ||
|- | |- | ||
| 0x21 || | | [21.0.0+] 0x21 ([-20.5.0] 0x20) || CanOpenBisPartitionCalibrationFile || 0x8000000000000084 || RW || [[#OpenBisStorage]] | ||
|- | |- | ||
| 0x22 || | | [21.0.0+] 0x22 ([-20.5.0] 0x21) || CanOpenBisPartitionSafeMode || 0x8000000000000080 || RW || [[#OpenBisStorage]] | ||
|- | |- | ||
| 0x23 || | | [21.0.0+] 0x23 ([-20.5.0] 0x22) || CanOpenBisPartitionUser || 0x8000000000000080 || RW || [[#OpenBisStorage]] | ||
|- | |- | ||
| 0x24 || | | [21.0.0+] 0x24 ([-20.5.0] 0x23) || CanOpenBisPartitionSystem || 0x8000000000000080 || RW || [[#OpenBisStorage]] | ||
|- | |- | ||
| 0x25 || | | [21.0.0+] 0x25 ([-20.5.0] 0x24) || CanOpenBisPartitionSystemProperEncryption || 0x8000000000000080 || RW || [[#OpenBisStorage]] | ||
|- | |- | ||
| 0x26 || | | [21.0.0+] 0x26 ([-20.5.0] 0x25) || CanOpenBisPartitionSystemProperPartition || 0x8000000000000080 || RW || [[#OpenBisStorage]] | ||
|- | |- | ||
| [ | | [21.0.0+] 0x27 ([-20.5.0] 0x26) || CanOpenBisPartitionDeviceTreeBlob || 0x8000002000000080 || RW || [[#OpenBisStorage]] | ||
|- | |- | ||
| [ | | [21.0.0+] 0x28 ([3.0.0-20.5.0] 0x27) || CanOpenSdCardStorage || 0xC000000000200000 || RW || | ||
|- | |- | ||
| [ | | [21.0.0+] 0x29 ([3.0.0-20.5.0] 0x28) || CanOpenGameCardStorage || 0x8000000000000100 || RW || [[#OpenGameCardStorage]], [[#EraseGameCard]] (bit1), [[#WriteToGameCardDirectly]] (bit1), [[#GetGameCardErrorInfo]] (bit1), [[#EraseAndWriteParamDirectly]] (bit1), [[#ReadParamDirectly]] (bit1), [[#ForceEraseGameCard]] (bit1) | ||
|- | |- | ||
| [ | | [21.0.0+] 0x2A ([4.0.0-20.5.0] 0x29) || CanMountSystemDataPrivate || 0x8000000000100008 || R- || [[#OpenFileSystem]], [[#OpenDataStorageByDataId]] | ||
|- | |- | ||
| [ | | [21.0.0+] 0x2B || CanMountSystemDataPrivateIdRestricted || 0x8000200000000000 || R- || [[#OpenFileSystem]], [[#OpenDataStorageByDataId]] | ||
|- | |- | ||
| [ | | [21.0.0+] 0x2C ([5.0.0-20.5.0] 0x2A) || CanMountHost || 0xC000000000400000 || RW || [[#OpenHostFileSystem]] | ||
|- | |- | ||
| [ | | [21.0.0+] 0x2D ([6.0.0-20.5.0] 0x2B) || CanMountRegisteredUpdatePartition || 0x8000000000010000 || R- || [[#OpenRegisteredUpdatePartition]] | ||
|- | |- | ||
| [ | | [21.0.0+] 0x2E ([7.0.0-20.5.0] 0x2C) || CanOpenSaveDataInternalStorage || [20.0.0+] 0x8000000000000020 ([-19.0.0] 0x8000000000000000) || RW || [[#OpenSaveDataInternalStorageFileSystem]] | ||
|- | |- | ||
| [15.0.0 | | [21.0.0+] 0x2F ([7.0.0-20.5.0] 0x2D) || CanMountTemporaryDirectory || 0xC000000000000000 || RW || [11.0.0+] OpenBaseFileSystem, [12.0.0+] FormatBaseFileSystem | ||
|- | |||
| [21.0.0+] 0x30 ([11.0.0-20.5.0] 0x2E) || CanMountAllBaseFilesystem || 0x8000000000000000 || RW || OpenBaseFileSystem, [12.0.0+] FormatBaseFileSystem | |||
|- | |||
| [21.0.0+] 0x31 ([15.0.0-20.5.0] 0x2F) || CanNotMount || 0x0000000000000000 || -- || OpenCustomStorageFileSystem | |||
|} | |} | ||
| Line 457: | Line 485: | ||
| 0x1 || CanEraseMmc || 0x8000000000000080 || EraseMmc | | 0x1 || CanEraseMmc || 0x8000000000000080 || EraseMmc | ||
|- | |- | ||
| 0x2 || CanGetGameCardDeviceCertificate || 0x8000000000000010 || GetGameCardDeviceCertificate | | [20.0.0+] 0x2 || CanMarkBeforeEraseMmcPartitionUserData || 0x8000100000000080 || | ||
|- | |||
| [20.0.0+] 0x3 ([-19.0.0] 0x2) || CanGetGameCardDeviceCertificate || 0x8000000000000010 || GetGameCardDeviceCertificate | |||
|- | |||
| [20.0.0+] 0x4 ([-19.0.0] 0x3) || CanGetGameCardIdSet || 0x8000000000000010 || GetGameCardIdSet | |||
|- | |||
| [20.0.0+] 0x5 ([-19.0.0] 0x4) || CanFinalizeGameCardDriver || 0x8000000000000200 || FinalizeGameCardDriver | |||
|- | |||
| [20.0.0+] 0x6 ([-19.0.0] 0x5) || CanGetGameCardAsicInfo || 0x8000000000000200 || GetGameCardAsicInfo | |||
|- | |||
| [20.0.0+] 0x7 ([-19.0.0] 0x6) || CanGetGameCardAsicCertificate || 0x8000000000000200 || GetGameCardAsicCertificate | |||
|- | |||
| [20.0.0+] 0x8 || CanGetGameCardCardHeader || 0x8000100000000080 || | |||
|- | |||
| [20.0.0+] 0x9 || CanGetGameCardApplicationIdList || 0x8000100000000080 || | |||
|- | |||
| [20.0.0+] 0xA || CanGetGameCardDetailedErrorReportInfo || 0x8000080000000000 || | |||
|- | |||
| [20.0.0+] 0xB || CanSetGameCardSessionCreationDelay || 0x8000000000000010 || | |||
|- | |||
| [20.0.0+] 0xC || CanRegisterGameCardConfigurationData || 0x8000100000000080 || | |||
|- | |||
| [20.0.0+] 0xD ([-19.0.0] 0x7) || CanCreateSaveData || 0x8000000000002020 || [[#CreateSaveDataFileSystem]] | |||
|- | |||
| [20.0.0+] 0xE ([-19.0.0] 0x8) || CanDeleteSaveData || 0x8000000000000060 || [[#DeleteSaveDataFileSystem]], RegisterSaveDataFileSystemAtomicDeletion | |||
|- | |- | ||
| | | [20.0.0+] 0xF ([-19.0.0] 0x9) || CanCreateSystemSaveData || 0x8000000000000028 || CreateSaveDataFileSystemBySystemSaveDataId | ||
|- | |- | ||
| | | [20.0.0+] 0x10 ([-19.0.0] 0xA) || CanCreateOthersSystemSaveData || 0x8000000000000020 || CreateSaveDataFileSystemBySystemSaveDataId | ||
|- | |- | ||
| | | [20.0.0+] 0x11 ([-19.0.0] 0xB) || CanDeleteSystemSaveData || 0x8000000000004028 || [[#DeleteSaveDataFileSystem]], RegisterSaveDataFileSystemAtomicDeletion | ||
|- | |- | ||
| | | [20.0.0+] 0x12 ([-19.0.0] 0xC) || CanOpenSaveDataInfoReader || 0x8000000000000060 || [[#OpenSaveDataInfoReaderBySaveDataSpaceId]], [[#OpenSaveDataInfoReader]] | ||
|- | |- | ||
| | | [20.0.0+] 0x13 ([-19.0.0] 0xD) || CanOpenSaveDataInfoReaderForSystem || 0x8000000000004020 || [[#OpenSaveDataInfoReaderBySaveDataSpaceId]], [[#OpenSaveDataInfoReader]] | ||
|- | |- | ||
| | | [20.0.0+] 0x14 ([-19.0.0] 0xE) || CanOpenSaveDataInfoReaderForInternal || 0x8000000000000040 || [[#OpenSaveDataInfoReaderWithFilter]] | ||
|- | |- | ||
| | | [20.0.0+] 0x15 ([-19.0.0] 0xF) || CanOpenSaveDataMetaFile || 0x8000000000020000 || OpenSaveDataMetaFile | ||
|- | |- | ||
| | | [20.0.0+] 0x16 ([-19.0.0] 0x10) || CanSetCurrentPosixTime || 0x8000000000000400 || SetCurrentPosixTime, SetCurrentPosixTimeWithTimeDifference | ||
|- | |- | ||
| | | [20.0.0+] 0x17 ([-19.0.0] 0x11) || CanReadSaveDataFileSystemExtraData || 0x8000000000004060 || [[#ReadSaveDataFileSystemExtraData]] | ||
|- | |- | ||
| | | [20.0.0+] 0x18 ([-19.0.0] 0x12) || CanSetGlobalAccessLogMode || 0x8000000000080000 || [[#SetGlobalAccessLogMode]] | ||
|- | |- | ||
| | | [20.0.0+] 0x19 ([-19.0.0] 0x13) || CanSetSpeedEmulationMode || 0x8000000000080000 || SetSpeedEmulationMode | ||
|- | |- | ||
| | | [20.0.0+] 0x1A || CanSetApplicationStorageSpeed || 0x8000000400080000 || | ||
|- | |- | ||
| | | [20.0.0+] 0x1B || CanSetGameCardClockRateForSpeedEmulation || 0x8000000400080000 || | ||
|- | |- | ||
| | | [20.0.0+] 0x1C ([-19.0.0] 0x14) || CanDebug || 0xC000000000000000 || | ||
|- | |- | ||
| | | [20.0.0+] 0x1D ([-19.0.0] 0x15) || CanFillBis || 0xC000000000800000 || CreatePaddingFile, DeleteAllPaddingFiles | ||
|- | |- | ||
| | | [20.0.0+] 0x1E ([2.0.0-19.0.0] 0x16) || CanCorruptSaveData || 0xC000000001000000 || CorruptSaveDataFileSystem, CorruptSaveDataFileSystemBySaveDataSpaceId | ||
|- | |- | ||
| | | [20.0.0+] 0x1F ([2.0.0-19.0.0] 0x17) || CanCorruptSystemSaveData || 0x8000000001000060 || CorruptSaveDataFileSystem, CorruptSaveDataFileSystemBySaveDataSpaceId | ||
|- | |- | ||
| | | [20.0.0+] 0x20 ([2.0.0-19.0.0] 0x18) || CanVerifySaveData || 0x8000000000000060 || [[#VerifySaveDataFileSystem]], VerifySaveDataFileSystemBySaveDataSpaceId | ||
|- | |- | ||
| | | [20.0.0+] 0x21 ([2.0.0-19.0.0] 0x19) || CanDebugSaveData || 0xC000000002000000 || [[#CreateSaveDataFileSystem]], [[#OpenSaveDataFileSystem]], [[#SetSaveDataRootPath]] | ||
|- | |- | ||
| [2.0.0 | | [20.0.0+] 0x22 ([2.0.0-19.0.0] 0x1A) || CanFormatSdCard || 0x8000000004000000 || FormatSdCardFileSystem | ||
|- | |- | ||
| [ | | [20.0.0+] 0x23 ([3.0.0-19.0.0] 0x1B) || CanGetRightsId || 0x8000000008000000 || GetRightsId, GetRightsIdAndKeyGenerationByPath, GetRightsIdByPath | ||
|- | |- | ||
| [ | | [20.0.0+] 0x24 ([3.0.0-19.0.0] 0x1C) || CanRegisterExternalKey || 0x8000000010000000 || RegisterExternalKey, UnregisterAllExternalKey | ||
|- | |- | ||
| [ | | [20.0.0+] 0x25 ([4.0.0-19.0.0] 0x1D) || CanSetEncryptionSeed || 0x8000000000000800 || [[#SetSdCardEncryptionSeed]] | ||
|- | |- | ||
| [ | | [20.0.0+] 0x26 ([4.0.0-19.0.0] 0x1E) || CanWriteSaveDataFileSystemExtraDataTimeStamp || 0x8000000000000020 || WriteSaveDataFileSystemExtraData, WriteSaveDataFileSystemExtraDataWithMask | ||
|- | |- | ||
| [ | | [20.0.0+] 0x27 ([4.0.0-19.0.0] 0x1F) || CanWriteSaveDataFileSystemExtraDataFlags || 0x8000000000004020 || WriteSaveDataFileSystemExtraData, WriteSaveDataFileSystemExtraDataWithMask | ||
|- | |- | ||
| [ | | [20.0.0+] 0x28 ([4.0.0-19.0.0] 0x20) || CanWriteSaveDataFileSystemExtraDataCommitId || 0x8000000000000020 || WriteSaveDataFileSystemExtraData, WriteSaveDataFileSystemExtraDataWithMask | ||
|- | |- | ||
| [ | | [20.0.0+] 0x29 ([5.0.0-19.0.0] 0x21) || CanWriteSaveDataFileSystemExtraDataAll || 0x8000000000000000 || WriteSaveDataFileSystemExtraData, WriteSaveDataFileSystemExtraDataWithMask | ||
|- | |- | ||
| [ | | [20.0.0+] 0x2A ([5.0.0-19.0.0] 0x22) || CanExtendSaveData || 0x8000000000002020 || ExtendSaveDataFileSystem | ||
|- | |- | ||
| [ | | [20.0.0+] 0x2B ([5.0.0-19.0.0] 0x23) || CanExtendSystemSaveData || 0x8000000000000028 || ExtendSaveDataFileSystem | ||
|- | |- | ||
| [ | | [20.0.0+] 0x2C ([5.0.0-19.0.0] 0x24) || CanExtendOthersSystemSaveData || 0x8000000000000020 || ExtendSaveDataFileSystem | ||
|- | |- | ||
| [5.0.0 | | [20.0.0+] 0x2D ([5.0.0-19.0.0] 0x25) || CanRegisterUpdatePartition || 0x8000000020000000 || RegisterUpdatePartition | ||
|- | |- | ||
| [5.0.0 | | [20.0.0+] 0x2E ([5.0.0-19.0.0] 0x26) || CanOpenSaveDataTransferManager || 0x8000000040000000 || [[#OpenSaveDataTransferManager]] | ||
|- | |- | ||
| [5.0.0 | | [20.0.0+] 0x2F ([5.0.0-19.0.0] 0x27) || CanOpenSaveDataTransferManagerVersion2 || 0x8000000200000000 || [[#OpenSaveDataTransferManagerVersion2]] | ||
|- | |- | ||
| [5.0.0 | | [20.0.0+] 0x30 ([5.0.0-19.0.0] 0x28) || CanOpenSaveDataTransferManagerForSaveDataRepair || 0x8000000200000000 || OpenSaveDataTransferManagerForSaveDataRepair | ||
|- | |- | ||
| [5.0.0 | | [20.0.0+] 0x31 ([5.0.0-19.0.0] 0x29) || CanOpenSaveDataTransferManagerForSaveDataRepairTool || 0x8000000000000000 || OpenSaveDataTransferManagerForSaveDataRepair | ||
|- | |- | ||
| [5.0.0 | | [20.0.0+] 0x32 ([5.0.0-19.0.0] 0x2A) || CanOpenOpenSaveDataTransferProhibiter || 0x8000000200002000 || [[#OpenSaveDataTransferProhibiter]] | ||
|- | |- | ||
| [5.0.0 | | [20.0.0+] 0x33 ([5.0.0-19.0.0] 0x2B) || CanOpenSaveDataMover || 0x8000001000000000 || [[#OpenSaveDataMover]] | ||
|- | |- | ||
| [5.0.0 | | [20.0.0+] 0x34 ([5.0.0-19.0.0] 0x2C) || CanOpenBisWiper || 0x8000000000000800 || [[#OpenBisWiper]] | ||
|- | |- | ||
| [5.0.0 | | [20.0.0+] 0x35 ([5.0.0-19.0.0] 0x2D) || CanListAccessibleSaveDataOwnerId || 0x8000000240002000 || [[#ListAccessibleSaveDataOwnerId]] | ||
|- | |- | ||
| [5.0.0 | | [20.0.0+] 0x36 ([5.0.0-19.0.0] 0x2E) || CanControlMmcPatrol || 0x8000000000000000 || SuspendMmcPatrol, ResumeMmcPatrol | ||
|- | |- | ||
| [5.0.0 | | [20.0.0+] 0x37 ([5.0.0-19.0.0] 0x2F) || CanOverrideSaveDataTransferTokenSignVerificationKey || 0x8000000000000000 || OverrideSaveDataTransferTokenSignVerificationKey | ||
|- | |- | ||
| [5.0.0 | | [20.0.0+] 0x38 ([5.1.0-19.0.0] 0x30) || CanOpenSdCardDetectionEventNotifier || 0x8000000080200000 || [[#OpenSdCardDetectionEventNotifier]] | ||
|- | |- | ||
| [ | | [20.0.0+] 0x39 || CanOpenSdCardAwakenReadyEventNotifier || 0x8000000000200000 || | ||
|- | |- | ||
| [ | | [20.0.0+] 0x3A ([6.0.0-19.0.0] 0x31) || CanOpenGameCardDetectionEventNotifier || 0x8000000080000110 || [[#OpenGameCardDetectionEventNotifier]] | ||
|- | |- | ||
| [ | | [20.0.0+] 0x3B || CanOpenGameCardAwakenReadyEventNotifier || 0x8000000080000110 || OpenGameCardAwakenReadyEventNotifier | ||
|- | |- | ||
| [ | | [20.0.0+] 0x3C ([6.0.0-19.0.0] 0x32) || CanOpenSystemDataUpdateEventNotifier || 0x8000000000100008 || OpenSystemDataUpdateEventNotifier | ||
|- | |- | ||
| [6.0.0 | | [20.0.0+] 0x3D ([6.0.0-19.0.0] 0x33) || CanNotifySystemDataUpdateEvent || 0x8000000000010000 || NotifySystemDataUpdateEvent | ||
|- | |- | ||
| [6.0.0 | | [20.0.0+] 0x3E ([6.0.0-19.0.0] 0x34) || CanOpenAccessFailureDetectionEventNotifier || 0x8000000100000000 || [[#OpenAccessFailureDetectionEventNotifier]] | ||
|- | |- | ||
| [6.0.0 | | [20.0.0+] 0x3F ([6.0.0-19.0.0] 0x35) || CanGetAccessFailureDetectionEvent || 0x8000000100000000 || GetAccessFailureDetectionEvent | ||
|- | |- | ||
| [6.0.0 | | [20.0.0+] 0x40 ([6.0.0-19.0.0] 0x36) || CanIsAccessFailureDetected || 0x8000000100000000 || IsAccessFailureDetected | ||
|- | |- | ||
| [6.0.0 | | [20.0.0+] 0x41 ([6.0.0-19.0.0] 0x37) || CanResolveAccessFailure || 0x8000000100000000 || ResolveAccessFailure | ||
|- | |- | ||
| [6.0.0 | | [20.0.0+] 0x42 ([6.0.0-19.0.0] 0x38) || CanAbandonAccessFailure || 0x8000000100000000 || AbandonAccessFailure | ||
|- | |- | ||
| [ | | [20.0.0+] 0x43 ([8.0.0-19.0.0] 0x39) || CanQuerySaveDataInternalStorageTotalSize || 0x8000000040000000 || QuerySaveDataInternalStorageTotalSize | ||
|- | |- | ||
| [ | | [20.0.0+] 0x44 ([9.0.0-19.0.0] 0x3A) || CanGetSaveDataCommitId || 0x8000000200000020 || [[#GetSaveDataCommitId]] | ||
|- | |- | ||
| [ | | [20.0.0+] 0x45 || CanSetSdCardAccessibility || 0x8000000000200000 || SetSdCardAccessibility | ||
|- | |- | ||
| [9.0.0 | | [20.0.0+] 0x46 ([9.0.0-19.0.0] 0x3B) || CanSimulateDevice || 0x4000000000000000 || SimulateDeviceDetectionEvent, SetSimulationEvent, ClearSimulationEvent | ||
|- | |- | ||
| [9.0.0 | | [20.0.0+] 0x47 ([9.0.0-19.0.0] 0x3C) || CanCreateSaveDataWithHashSalt || 0x8000000000000000 || [[#CreateSaveDataFileSystem]], [[#CreateSaveDataFileSystemWithHashSalt]] | ||
|- | |- | ||
| [9.0.0 | | [20.0.0+] 0x48 ([9.0.0-19.0.0] 0x3D) || CanRegisterProgramIndexMapInfo || RegisterProgramIndexMapInfo | ||
|- | |- | ||
| [9.0.0 | | [20.0.0+] 0x49 ([9.0.0-19.0.0] 0x3E) || CanChallengeCardExistence || 0x8000000000000010 || ChallengeCardExistence | ||
|- | |- | ||
| [9.0.0 | | [20.0.0+] 0x4A ([9.0.0-19.0.0] 0x3F) || CanCreateOwnSaveData || 0x8000000800000000 || [[#CreateSaveDataFileSystem]], CreateSaveDataFileSystemWithHashSalt | ||
|- | |- | ||
| [9.0.0 | | [20.0.0+] 0x4B ([9.0.0-19.0.0] 0x40) || CanDeleteOwnSaveData || 0x8000000800000000 || [[#DeleteSaveDataFileSystem]] | ||
|- | |- | ||
| [9.0.0 | | [20.0.0+] 0x4C ([9.0.0-19.0.0] 0x41) || CanReadOwnSaveDataFileSystemExtraData || 0x8000000800000000 || [[#ReadSaveDataFileSystemExtraData]] | ||
|- | |- | ||
| [ | | [20.0.0+] 0x4D ([10.0.0-19.0.0] 0x42) || CanExtendOwnSaveData || 0x8000000800000000 || ExtendSaveDataFileSystem | ||
|- | |- | ||
| [10.0.0 | | [20.0.0+] 0x4E ([10.0.0-19.0.0] 0x43) || CanOpenOwnSaveDataTransferProhibiter || 0x8000000800000000 || [[#OpenSaveDataTransferProhibiter]] | ||
|- | |- | ||
| [10.0.0 | | [20.0.0+] 0x4F ([10.2.0-19.0.0] 0x44) || CanFindOwnSaveDataWithFilter || 0x8000000800000000 || [[#FindSaveDataWithFilter]] | ||
|- | |- | ||
| [ | | [20.0.0+] 0x50 ([11.0.0-19.0.0] 0x45) || CanOpenSaveDataTransferManagerForRepair || 0x8000000000000020 || [[#OpenSaveDataTransferManagerForRepair]] | ||
|- | |- | ||
| [ | | [20.0.0+] 0x51 ([13.0.0-19.0.0] 0x46) || CanSetDebugConfiguration || 0x8000000000000000 || SetDebugOption, UnsetDebugOption | ||
|- | |- | ||
| [13.0.0 | | [20.0.0+] 0x52 ([13.0.0-19.0.0] 0x47) || CanOpenDataStorageByPath || 0x8000000000000000 || OpenDataStorageByPath | ||
|- | |- | ||
| [ | | [20.0.0+] 0x53 ([15.0.0-19.0.0] 0x48) || CanNotifyErrorContextServiceReady || 0x8000004000000000 || NotifyErrorContextServiceReady | ||
|- | |- | ||
| [ | | [20.0.0+] 0x54 ([17.0.0-19.0.0] 0x49) || CanGetProgramId || 0x8000000008000000 || GetProgramId | ||
|- | |- | ||
| [ | | [20.0.0+] 0x55 || CanGetContentStorageInfo || 0x8000000000000800 || | ||
|- | |- | ||
| [ | | [20.0.0+] 0x56 || CanDetachSdCard || 0x8000000004000000 || | ||
|- | |||
| [20.0.0+] 0x57 || CanSetSdCardActivationMode || 0x8000000004000000 || | |||
|- | |||
| [21.0.0+] 0x58 || CanEnableSdCardMalfunctionSimulation || 0x8000000000080000 || | |||
|- | |||
| [21.0.0+] 0x59 || CanDisableSdCardMalfunctionSimulation || 0x8000000000080000 || | |||
|- | |||
| [22.0.0+] 0x5A || CanShutdownStorage || 0x8000000000000000 || | |||
|} | |} | ||
| Line 615: | Line 675: | ||
Takes an input [[#FileSystemProxyType]] and an input [[NCM_services#ProgramId|ProgramId]]. Returns an [[#IFileSystem]]. | Takes an input [[#FileSystemProxyType]] and an input [[NCM_services#ProgramId|ProgramId]]. Returns an [[#IFileSystem]]. | ||
The [[#FileSystemProxyType]] must be '''Manual'''. | |||
Note: web-applet strings refer to both this cmd and [[#OpenFileSystemWithId]] as "MountContent", but official nn_sf_sync symbols use "OpenXX" names. | Note: web-applet strings refer to both this cmd and [[#OpenFileSystemWithId]] as "MountContent", but official nn_sf_sync symbols use "OpenXX" names. | ||
| Line 717: | Line 777: | ||
== OpenSaveDataTransferManager == | == OpenSaveDataTransferManager == | ||
No input, returns an [[#ISaveDataTransferManager]]. | No input, returns an [[#ISaveDataTransferManager]]. | ||
[S2] Stubbed, just returns Result 0x177202. | |||
== OpenSaveDataTransferManagerVersion2 == | == OpenSaveDataTransferManagerVersion2 == | ||
| Line 753: | Line 815: | ||
Returns a [[IPC_Marshalling#Domain_message|domain object ID]] implementing the [[#IStorage]] interface for data archives. | Returns a [[IPC_Marshalling#Domain_message|domain object ID]] implementing the [[#IStorage]] interface for data archives. | ||
[[NCA|PublicData]] is exempt from the [[#Permissions|permissions]] check. | |||
== OpenDataFileSystemWithProgramIndex == | == OpenDataFileSystemWithProgramIndex == | ||
| Line 789: | Line 853: | ||
[8.0.0+] Now takes an additional 8-bytes of input. | [8.0.0+] Now takes an additional 8-bytes of input. | ||
== GetAndClearErrorInfo == | |||
[21.0.0+] Now takes a type-0x1A output buffer and no longer returns 0x80-bytes of output. | |||
== SetSaveDataSize == | == SetSaveDataSize == | ||
| Line 1,063: | Line 1,130: | ||
| 5 || [2.0.0+] [[#GetAndClearSdCardErrorInfo]] | | 5 || [2.0.0+] [[#GetAndClearSdCardErrorInfo]] | ||
|- | |- | ||
| 6 || [17.0.0+] GetSdCardHostControllerStatus | | 6 || [17.0.0+] [[#GetSdCardHostControllerStatus]] | ||
|- | |- | ||
| 100 || [[#GetMmcCid]] | | 7 || [20.0.0+] [[#SetSdCardActivationMode]] | ||
|- | |||
| 8 || [20.0.0+] [S1] [[#TryGetSdCardInfo]] | |||
|- | |||
| 100 || [[#GetMmcCid]] | |||
|- | |- | ||
| 101 || [[#GetMmcSpeedMode]] | | 101 || [[#GetMmcSpeedMode]] | ||
| Line 1,083: | Line 1,154: | ||
| 116 || [4.0.0+] [[#ResumeMmcPatrol]] | | 116 || [4.0.0+] [[#ResumeMmcPatrol]] | ||
|- | |- | ||
| 117 || [17.0.0+] EraseMmcWithRange | | 117 || [17.0.0+] [[#EraseMmcWithRange]] | ||
|- | |- | ||
| | | 118 || [20.0.0+] [[#MarkBeforeEraseMmcPartitionUserData]] | ||
|- | |- | ||
| | | 119 || [20.0.0+] [[#CheckAfterEraseMmcPartitionUserData]] | ||
|- | |- | ||
| | | 200 || [S1] [[#IsGameCardInserted]] | ||
|- | |- | ||
| | | 201 || [S1] [[#EraseGameCard]] | ||
|- | |- | ||
| | | 202 || [S1] [[#GetGameCardHandle]] | ||
|- | |- | ||
| | | 203 || [S1] [[#GetGameCardUpdatePartitionInfo]] | ||
|- | |- | ||
| | | 204 || [S1] [[#FinalizeGameCardDriver]] | ||
|- | |- | ||
| | | 205 || [S1] [[#GetGameCardAttribute]] | ||
|- | |- | ||
| | | 206 || [S1] [[#GetGameCardDeviceCertificate]] | ||
|- | |- | ||
| | | 207 || [S1] [[#GetGameCardAsicInfo]] | ||
|- | |- | ||
| | | 208 || [S1] [[#GetGameCardIdSet]] | ||
|- | |- | ||
| | | 209 || [S1] [[#WriteToGameCardDirectly]] | ||
|- | |- | ||
| | | 210 || [S1] [[#SetVerifyWriteEnalbleFlag]] | ||
|- | |- | ||
| | | 211 || [S1] [[#GetGameCardImageHash]] | ||
|- | |- | ||
| | | 212 || [S1] [2.0.0+] [[#GetGameCardDeviceIdForProdCard]] | ||
|- | |- | ||
| | | 213 || [S1] [2.0.0+] [[#EraseAndWriteParamDirectly]] | ||
|- | |- | ||
| | | 214 || [S1] [2.0.0+] [[#ReadParamDirectly]] | ||
|- | |- | ||
| | | 215 || [S1] [2.0.0+] [[#ForceEraseGameCard]] | ||
|- | |- | ||
| | | 216 || [S1] [2.0.0+] [[#GetGameCardErrorInfo]] | ||
|- | |- | ||
| | | 217 || [S1] [2.1.0+] [[#GetGameCardErrorReportInfo]] | ||
|- | |- | ||
| | | 218 || [S1] [3.0.0+] [[#GetGameCardDeviceId]] | ||
|- | |- | ||
| | | 219 || [S1] [8.0.0+] [[#ChallengeCardExistence]] | ||
|- | |- | ||
| | | 220 || [S1] [9.0.0+] [[#GetGameCardCompatibilityType]] | ||
|- | |- | ||
| | | 221 || [S1] [17.0.0+] [[#GetGameCardAsicCertificate]] | ||
|- | |- | ||
| 224 || [19.0.0+] | | 222 || [S1] [18.0.0+] [[#GetGameCardCardHeader]] | ||
|- | |||
| 223 || [S1] [19.0.0+] [[#SetGameCardSessionCreationDelay]] | |||
|- | |||
| 224 || [S1] [19.0.0+] [[#GetGameCardApplicationIdList]] | |||
|- | |||
| 225 || [S1] [20.0.0+] [[#RegisterGameCardConfigurationData]] | |||
|- | |||
| 226 || [S1] [20.0.0+] [[#GetGameCardDetailedErrorReportInfo]] | |||
|- | |- | ||
| 300 || [[#SetSpeedEmulationMode]] | | 300 || [[#SetSpeedEmulationMode]] | ||
| Line 1,139: | Line 1,218: | ||
| 301 || [[#GetSpeedEmulationMode]] | | 301 || [[#GetSpeedEmulationMode]] | ||
|- | |- | ||
| 302 || [18.0.0+] SetApplicationStorageSpeed | | 302 || [18.0.0+] [[#SetApplicationStorageSpeed]] | ||
|- | |||
| 303 || [20.0.0+] [[#SetGameCardClockRateForSpeedEmulation]] | |||
|- | |||
| 304 || [20.0.0+] [[#ClearGameCardClockRateForSpeedEmulation]] | |||
|- | |- | ||
| 400 || [5.0.0+] [[#SuspendSdmmcControl]] | | 400 || [5.0.0+] [[#SuspendSdmmcControl]] | ||
| Line 1,150: | Line 1,233: | ||
|- | |- | ||
| 501 || [6.0.0+] [[#ClearDeviceSimulationEvent]] | | 501 || [6.0.0+] [[#ClearDeviceSimulationEvent]] | ||
|- | |||
| 800 || [S2] [[#OpenStorageDeviceManager]] | |||
|} | |} | ||
| Line 1,169: | Line 1,254: | ||
== GetAndClearSdCardErrorInfo == | == GetAndClearSdCardErrorInfo == | ||
Takes a type-0x6 output buffer '''LogBuffer''' and an input s64 '''LogBufferSize'''. Returns an output [[#StorageErrorInfo]] and an output s64 '''LogSize'''. | Takes a type-0x6 output buffer '''LogBuffer''' and an input s64 '''LogBufferSize'''. Returns an output [[#StorageErrorInfo]] and an output s64 '''LogSize'''. | ||
== GetSdCardHostControllerStatus == | |||
No input. Returns an output [[#HostControllerStatus]]. | |||
== SetSdCardActivationMode == | |||
Takes an input [[#SdCardActivationMode]]. No output. | |||
== TryGetSdCardInfo == | |||
Takes a type-0x6 output buffer and an input s64. No output. | |||
== GetMmcCid == | == GetMmcCid == | ||
| Line 1,195: | Line 1,289: | ||
== ResumeMmcPatrol == | == ResumeMmcPatrol == | ||
No input/output. | |||
== EraseMmcWithRange == | |||
Takes an input [[#MmcPartition]] and two input u64s. No output. | |||
== MarkBeforeEraseMmcPartitionUserData == | |||
No input/output. | |||
== CheckAfterEraseMmcPartitionUserData == | |||
No input/output. | No input/output. | ||
| Line 1,218: | Line 1,321: | ||
Takes a type-0x6 output buffer, an input s64 '''BufferSize''' and an input [[#GameCardHandle]]. No output. | Takes a type-0x6 output buffer, an input s64 '''BufferSize''' and an input [[#GameCardHandle]]. No output. | ||
[19.0.0+] Now returns | [19.0.0+] Now returns an output s64 '''OutSize''' which can be 0x200 or 0x400. | ||
== GetGameCardAsicInfo == | == GetGameCardAsicInfo == | ||
| Line 1,269: | Line 1,372: | ||
== GetGameCardCardHeader == | == GetGameCardCardHeader == | ||
Takes a type-0x6 output buffer, an input s64 '''BufferSize''' and an input [[#GameCardHandle]]. No output. | Takes a type-0x6 output buffer, an input s64 '''BufferSize''' and an input [[#GameCardHandle]]. No output. | ||
== SetGameCardSessionCreationDelay == | |||
Takes two input bools and an input u32. No output. | |||
== GetGameCardApplicationIdList == | |||
Takes a type-0x6 output buffer, an input s64 '''BufferSize''' and an input [[#GameCardHandle]]. Returns an output u16. | |||
== RegisterGameCardConfigurationData == | |||
Takes a type-0x5 input buffer and an input s64. No output. | |||
== GetGameCardDetailedErrorReportInfo == | |||
Takes a type-0x6 output buffer and an input s64. No output. | |||
== SetSpeedEmulationMode == | == SetSpeedEmulationMode == | ||
| Line 1,275: | Line 1,390: | ||
== GetSpeedEmulationMode == | == GetSpeedEmulationMode == | ||
No input. Returns an output [[#SpeedEmulationMode]]. | No input. Returns an output [[#SpeedEmulationMode]]. | ||
== SetApplicationStorageSpeed == | |||
Takes an input s32. No output. | |||
== SetGameCardClockRateForSpeedEmulation == | |||
Takes an input s32. No output. | |||
== ClearGameCardClockRateForSpeedEmulation == | |||
No input/output. | |||
== SuspendSdmmcControl == | == SuspendSdmmcControl == | ||
| Line 1,290: | Line 1,414: | ||
== ClearDeviceSimulationEvent == | == ClearDeviceSimulationEvent == | ||
Takes a total of 4-bytes of input. No output. | Takes a total of 4-bytes of input. No output. | ||
== OpenStorageDeviceManager == | |||
Takes a byte. Returns an [[#IStorageDeviceManager]]. | |||
= IEventNotifier = | = IEventNotifier = | ||
| Line 1,508: | Line 1,635: | ||
|- | |- | ||
| 16 || [[#SetKeySeedPackage]] | | 16 || [[#SetKeySeedPackage]] | ||
|- | |||
| 17 || [20.0.0+] [[#SetLocalKeySeedPackage|SetLocalKeySeedPackage]] | |||
|- | |- | ||
| 32 || [[#OpenSaveDataExporter]] | | 32 || [[#OpenSaveDataExporter]] | ||
| Line 1,539: | Line 1,668: | ||
== SetKeySeedPackage == | == SetKeySeedPackage == | ||
No input/output, takes a type-0x5 input buffer containing the '''KeySeedPackage'''. | No input/output, takes a type-0x5 input buffer containing the '''KeySeedPackage'''. | ||
== SetLocalKeySeedPackage == | |||
No input/output, takes a type-0x5 input buffer containing a [[#LocalKeySeedPackage|LocalKeySeedPackage]]. | |||
This can only be used after [[#SetKeySeedPackage]], in certain conditions. | |||
== OpenSaveDataExporter == | == OpenSaveDataExporter == | ||
| Line 1,601: | Line 1,735: | ||
|- | |- | ||
| 74 || [18.0.0+] [[#GetKeySeed]] | | 74 || [18.0.0+] [[#GetKeySeed]] | ||
|- | |||
| 75 || [20.0.0+] GetLocalKeySeedPackage | |||
|- | |- | ||
| 80 || [6.0.0+] [[#GetImportInitialDataAad]] | | 80 || [6.0.0+] [[#GetImportInitialDataAad]] | ||
| Line 1,809: | Line 1,945: | ||
= IStorageDeviceManager = | = IStorageDeviceManager = | ||
This is "nn::fssrv::storage::sf::IStorageDeviceManager". | [S2] This is "nn::fssrv::storage::sf::IStorageDeviceManager". | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
| Line 1,815: | Line 1,951: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| | | 0 || IsInserted | ||
|- | |- | ||
| | | 1 || IsHandleValid | ||
|- | |- | ||
| | | 2 || [[#OpenDetectionEvent]] | ||
|- | |- | ||
| | | 3 || Returns an [[#IEventNotifier]]. | ||
|- | |- | ||
| | | 10 || [[#OpenOperator]] | ||
|- | |- | ||
| | | 20 || [[#OpenDevice]] | ||
|- | |- | ||
| | | 21 || [[#OpenStorage]] | ||
|- | |||
| 34 || Invalidate | |||
|} | |} | ||
== OpenDetectionEvent == | |||
Returns an [[#IEventNotifier]]. | |||
== OpenOperator == | |||
Returns an [[#IStorageDeviceOperator]]. | |||
== OpenDevice == | |||
Returns an [[#IStorageDevice]]. | |||
== OpenStorage == | |||
Returns an [[#IStorage]]. | |||
= IStorageDeviceOperator = | = IStorageDeviceOperator = | ||
This is "nn::fssrv::storage::sf::IStorageDeviceOperator". | [S2] This is "nn::fssrv::storage::sf::IStorageDeviceOperator". | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
| Line 1,837: | Line 1,986: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| | | 0 || Operate | ||
|- | |- | ||
| | | 1 || OperateIn | ||
|- | |- | ||
| | | 10 || OperateOut | ||
|- | |- | ||
| | | 11 || OperateOut2 | ||
|- | |- | ||
| | | 20 || OperateInOut | ||
|- | |- | ||
| | | 21 || OperateIn2Out | ||
|} | |} | ||
= IStorageDevice = | = IStorageDevice = | ||
This is "nn::fssrv::storage::sf::IStorageDevice". | [S2] This is "nn::fssrv::storage::sf::IStorageDevice". | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
| Line 1,857: | Line 2,006: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| | | 0 || GetHandle | ||
|- | |- | ||
| | | 1 || IsHandleValid | ||
|- | |- | ||
| | | 10 || OpenOperator | ||
|- | |- | ||
| | | 20 || Read | ||
|- | |- | ||
| | | 21 || Write | ||
|- | |- | ||
| | | 22 || Flush | ||
|- | |- | ||
| | | 23 || SetSize | ||
|- | |- | ||
| | | 24 || GetSize | ||
|- | |- | ||
| | | 25 || OperateRange | ||
|} | |} | ||
= FileSystemProxyType = | = FileSystemProxyType = | ||
This is "nn::fs::FileSystemProxyType". | This is "nn::fs::FileSystemProxyType". | ||
sdknso converts the input [[#ContentType|ContentType]] to a FileSystemProxyType, for use with the cmd input. | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
| Line 1,928: | Line 2,079: | ||
|- | |- | ||
| 0 || None | | 0 || None | ||
|- | |||
| 1 || [S2] | |||
|- | |- | ||
| 15 || All | | 15 || All | ||
| Line 1,968: | Line 2,121: | ||
|- | |- | ||
| 101 || [3.0.0+] SafeMode | | 101 || [3.0.0+] SafeMode | ||
|- | |||
| 102 || [?+] ProperUser | |||
|} | |} | ||
| Line 2,191: | Line 2,346: | ||
| 33 || SystemProperPartition | | 33 || SystemProperPartition | ||
|- | |- | ||
| 34 || SignedSystemPartitionOnSafeMode | | 34 || [-?] SignedSystemPartitionOnSafeMode | ||
|- | |- | ||
| 35 || [16.0.0+] DeviceTreeBlob | | 35 || [16.0.0+] DeviceTreeBlob | ||
|- | |- | ||
| 36 || [16.0.0+] System0 | | 36 || [16.0.0+] System0 | ||
|- | |||
| 37 || System2 | |||
|- | |||
| 38 || [?+] System3 | |||
|- | |||
| 39 || [21.0.0+] UserProperPartition | |||
|} | |} | ||
System2 is not supported by FS, perhaps removed at some point? | |||
= SdCardSpeedMode = | = SdCardSpeedMode = | ||
| Line 2,256: | Line 2,419: | ||
|- | |- | ||
| 2 || BootPartition2 | | 2 || BootPartition2 | ||
|} | |||
= HostControllerStatus = | |||
This is "nn::sdcard::HostControllerStatus". | |||
{| class="wikitable" border="1" | |||
|- | |||
! Offset | |||
! Size | |||
! Description | |||
|- | |||
| 0x0 | |||
| 0xC | |||
| | |||
|} | |||
= SdCardActivationMode = | |||
This is "nn::fs::SdCardActivationMode". | |||
{| class="wikitable" border="1" | |||
|- | |||
! Value || Name | |||
|- | |||
| 0 || | |||
|} | |} | ||
| Line 2,627: | Line 2,814: | ||
| 0x3 | | 0x3 | ||
| 0x1 | | 0x1 | ||
| MemoryType | | [[#MemoryType|MemoryType]] | ||
|} | |} | ||
| Line 2,641: | Line 2,828: | ||
| 0x0 | | 0x0 | ||
| 0x1 | | 0x1 | ||
| CardSecurityNumber | | [[#CardSecurityNumber|CardSecurityNumber]] | ||
|- | |- | ||
| 0x1 | | 0x1 | ||
| 0x1 | | 0x1 | ||
| CardType | | [[#CardType|CardType]] | ||
|- | |- | ||
| 0x2 | | 0x2 | ||
| Line 2,700: | Line 2,887: | ||
|} | |} | ||
= | = MemoryType = | ||
This is "nn::gc:: | This is "nn::gc::detail::MemoryType". | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
! | ! Value || Name | ||
|- | |- | ||
| 0x0 | | 0x1 || T1RomFast | ||
| 0x100 | |- | ||
| [[XCI#CardHeader|Signature]] | | 0x2 || T2RomFast | ||
|- | |||
| 0x9 || T1NandFast | |||
|- | |||
| 0xA || T2NandFast | |||
|- | |||
| 0x21 || T1RomLate | |||
|- | |||
| 0x22 || T2RomLate | |||
|- | |||
| 0x29 || T1NandLate | |||
|- | |||
| 0x2A || T2NandLate | |||
|} | |||
= CardSecurityNumber = | |||
This is "nn::gc::detail::CardSecurityNumber". | |||
{| class="wikitable" border="1" | |||
|- | |||
! Value || Name | |||
|- | |||
| 0 || 0 | |||
|- | |||
| 1 || 1 | |||
|- | |||
| 2 || 2 | |||
|- | |||
| 3 || 3 | |||
|- | |||
| 4 || 4 | |||
|} | |||
= CardType = | |||
This is "nn::gc::detail::CardType". | |||
{| class="wikitable" border="1" | |||
|- | |||
! Value || Name | |||
|- | |||
| 0 || Rom | |||
|- | |||
| 1 || WritableDevT1 | |||
|- | |||
| 2 || WritableProdT1 | |||
|- | |||
| 3 || WritableDevT2 | |||
|- | |||
| 4 || WritableProdT2 | |||
|} | |||
= RmaInformation = | |||
This is "nn::gc::RmaInformation". This is a 0x200-byte struct. | |||
= GameCardCardHeader = | |||
This is a 0x600-byte struct. | |||
{| class="wikitable" border="1" | |||
|- | |||
! Offset | |||
! Size | |||
! Description | |||
|- | |||
| 0x0 | |||
| 0x100 | |||
| [[XCI#CardHeader|Signature]] | |||
|- | |- | ||
| 0x100 | | 0x100 | ||
| Line 2,724: | Line 2,971: | ||
| [[XCI#NewCardHeaderCertArea|NewCardHeaderCertArea]] | | [[XCI#NewCardHeaderCertArea|NewCardHeaderCertArea]] | ||
|} | |} | ||
= GameCardAsicProductionFirmware = | |||
This is the [[Lotus3#AsicFirmware|firmware]] for reading production Gamecards. | |||
Embedded in "nn::gc::detail::EmbeddedDataHolder::g_FwReadBuffer" when in production mode. | |||
[4.0.0+] This firmware was updated to provide support for new Gamecards. | |||
[9.0.0+] This firmware was updated. | |||
[11.0.0+] This firmware was updated. | |||
[12.0.0+] This firmware was updated. | |||
[14.0.0+] This firmware was updated. | |||
= GameCardAsicDevelopmentFirmware = | |||
This is the [[Lotus3#AsicFirmware|firmware]] for reading development Gamecards. | |||
Embedded in "nn::gc::detail::EmbeddedDataHolder::g_FwReadBuffer" when in development mode. | |||
[9.0.0+] This firmware was updated. | |||
[11.0.0+] This firmware was updated. | |||
[14.0.0+] This firmware was updated. | |||
= GameCardAsicWriterFirmware = | |||
This is the [[Lotus3#AsicFirmware|firmware]] for writing development Gamecards. | |||
Embedded in "nn::gc::detail::EmbeddedDataHolder::g_FwWriterBuffer". | |||
= SimulatingDeviceType = | = SimulatingDeviceType = | ||
| Line 3,000: | Line 3,278: | ||
= InitialDataVersion2 = | = InitialDataVersion2 = | ||
This is a 0x8210-byte struct used by [[#ISaveDataTransferManagerWithDivision]]. | This is a 0x8210-byte struct used by [[#ISaveDataTransferManagerWithDivision]]. | ||
= LocalKeySeedPackage = | |||
This is "nn::fs::LocalKeySeedPackage". | |||
This is a 0x200-byte ([S2] 0x280-byte) struct. | |||
= FsAccessControlRestrictionMode = | |||
This is "nn::fs::FsAccessControlRestrictionMode". | |||
{| class="wikitable" border="1" | |||
|- | |||
! Value || Name | |||
|- | |||
| 0 || | |||
|} | |||
[[Category:Services]] | [[Category:Services]] | ||