From 9eeed9c2254edea48465b6a8653dfd63b74bfd23 Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Thu, 7 Jan 2021 20:42:17 -0700 Subject: [PATCH] Allow defining abstract Results --- build/CodeGen/Stage1/ResultCodegen.cs | 61 +- build/CodeGen/results.csv | 2644 ++++++++++++------------- src/LibHac/Result.cs | 48 + src/LibHac/ResultNameResolver.cs | 4 + 4 files changed, 1430 insertions(+), 1327 deletions(-) diff --git a/build/CodeGen/Stage1/ResultCodegen.cs b/build/CodeGen/Stage1/ResultCodegen.cs index 4f21f9c1..b950cf50 100644 --- a/build/CodeGen/Stage1/ResultCodegen.cs +++ b/build/CodeGen/Stage1/ResultCodegen.cs @@ -131,6 +131,7 @@ namespace LibHacBuild.CodeGen.Stage1 foreach (ModuleInfo module in modules) { var descriptionSet = new HashSet(); + var descriptionSetAbstract = new HashSet(); if (!moduleIndexSet.Add(module.Index)) { @@ -144,9 +145,21 @@ namespace LibHacBuild.CodeGen.Stage1 foreach (ResultInfo result in module.Results) { - if (!descriptionSet.Add(result.DescriptionStart)) + if (result.IsAbstract) { - throw new InvalidDataException($"Duplicate result {result.Module}-{result.DescriptionStart}-{result.DescriptionEnd}."); + if (!descriptionSetAbstract.Add(result.DescriptionStart)) + { + throw new InvalidDataException( + $"Duplicate abstract result {result.Module}-{result.DescriptionStart}-{result.DescriptionEnd}."); + } + } + else + { + if (!descriptionSet.Add(result.DescriptionStart)) + { + throw new InvalidDataException( + $"Duplicate result {result.Module}-{result.DescriptionStart}-{result.DescriptionEnd}."); + } } } } @@ -263,8 +276,10 @@ namespace LibHacBuild.CodeGen.Stage1 sb.AppendLine(GetXmlDoc(result)); - string resultCtor = $"new Result.Base(Module{moduleName}, {descriptionArgs});"; - sb.Append($"public static Result.Base {result.Name} "); + string type = result.IsAbstract ? "Result.Base.Abstract" : "Result.Base"; + + string resultCtor = $"new {type}(Module{moduleName}, {descriptionArgs});"; + sb.Append($"public static {type} {result.Name} "); if (EstimateCilSize(result) > InlineThreshold) { @@ -292,7 +307,11 @@ namespace LibHacBuild.CodeGen.Stage1 doc += $"; Range: {result.DescriptionStart}-{result.DescriptionEnd}"; } - doc += $"; Inner value: 0x{result.InnerValue:x}"; + if (!result.IsAbstract) + { + doc += $"; Inner value: 0x{result.InnerValue:x}"; + } + doc += ""; return doc; @@ -473,6 +492,7 @@ namespace LibHacBuild.CodeGen.Stage1 element.Module = (short)result.Module; element.DescriptionStart = (short)result.DescriptionStart; element.DescriptionEnd = (short)result.DescriptionEnd; + element.IsAbstract = result.IsAbstract; Span utf8Name = Encoding.UTF8.GetBytes(result.FullName); utf8Name.CopyTo(nameTable.Slice(curNameOffset)); @@ -515,6 +535,7 @@ namespace LibHacBuild.CodeGen.Stage1 public short Module; public short DescriptionStart; public short DescriptionEnd; + public bool IsAbstract; } // ReSharper restore NotAccessedField.Local } @@ -550,6 +571,7 @@ namespace LibHacBuild.CodeGen.Stage1 public int Module { get; set; } public int DescriptionStart { get; set; } public int DescriptionEnd { get; set; } + public ResultInfoFlags Flags { get; set; } public string Name { get; set; } public string FullName { get; set; } public string Summary { get; set; } @@ -557,6 +579,14 @@ namespace LibHacBuild.CodeGen.Stage1 public bool IsRange => DescriptionStart != DescriptionEnd; public string ErrorCode => $"{2000 + Module:d4}-{DescriptionStart:d4}"; public int InnerValue => Module & 0x1ff | ((DescriptionStart & 0x7ffff) << 9); + public bool IsAbstract => Flags.HasFlag(ResultInfoFlags.Abstract); + } + + [Flags] + public enum ResultInfoFlags + { + None = 0, + Abstract = 1 << 0 } public sealed class ResultMap : ClassMap @@ -575,6 +605,27 @@ namespace LibHacBuild.CodeGen.Stage1 return int.Parse(field); }); + + Map(m => m.Flags).ConvertUsing(row => + { + string field = row.GetField("Flags"); + var flags = ResultInfoFlags.None; + + foreach (char c in field) + { + switch (c) + { + case 'a': + flags |= ResultInfoFlags.Abstract; + break; + + default: + throw new InvalidDataException($"Invalid Result flag '{c}'"); + } + } + + return flags; + }); } } } diff --git a/build/CodeGen/results.csv b/build/CodeGen/results.csv index c0aee9e3..f27b41f5 100644 --- a/build/CodeGen/results.csv +++ b/build/CodeGen/results.csv @@ -1,1326 +1,1326 @@ -Module,DescriptionStart,DescriptionEnd,Name,Summary - -1,7,,OutOfSessions, -1,14,,InvalidArgument, -1,33,,NotImplemented, -1,54,,StopProcessingException, -1,57,,NoSynchronizationObject, -1,59,,TerminationRequested, -1,70,,NoEvent, - -1,101,,InvalidSize, -1,102,,InvalidAddress, -1,103,,OutOfResource, -1,104,,OutOfMemory, -1,105,,OutOfHandles, -1,106,,InvalidCurrentMemory, -1,108,,InvalidNewMemoryPermission, -1,110,,InvalidMemoryRegion, -1,112,,InvalidPriority, -1,113,,InvalidCoreId, -1,114,,InvalidHandle, -1,115,,InvalidPointer, -1,116,,InvalidCombination, -1,117,,TimedOut, -1,118,,Cancelled, -1,119,,OutOfRange, -1,120,,InvalidEnumValue, -1,121,,NotFound, -1,122,,Busy, -1,123,,SessionClosed, -1,124,,NotHandled, -1,125,,InvalidState, -1,126,,ReservedUsed, -1,127,,NotSupported, -1,128,,Debug, -1,129,,NoThread, -1,130,,UnknownThread, -1,131,,PortClosed, -1,132,,LimitReached, -1,133,,InvalidMemoryPool, - -1,258,,ReceiveListBroken, -1,259,,OutOfAddressSpace, -1,260,,MessageTooLarge, - -1,517,,InvalidProcessId, -1,518,,InvalidThreadId, -1,519,,InvalidId, -1,520,,ProcessTerminated, - -2,0,999,HandledByAllProcess, -2,1,,PathNotFound,Specified path does not exist -2,2,,PathAlreadyExists,Specified path already exists -2,7,,TargetLocked,"Resource already in use (file already opened, savedata filesystem already mounted)" -2,8,,DirectoryNotEmpty,Specified directory is not empty when trying to delete it -2,13,,DirectoryStatusChanged, - -2,30,45,UsableSpaceNotEnough, -2,31,,UsableSpaceNotEnoughForSaveData, -2,34,38,UsableSpaceNotEnoughForBis, -2,35,,UsableSpaceNotEnoughForBisCalibration, -2,36,,UsableSpaceNotEnoughForBisSafe, -2,37,,UsableSpaceNotEnoughForBisUser, -2,38,,UsableSpaceNotEnoughForBisSystem, -2,39,,UsableSpaceNotEnoughForSdCard, -2,50,,UnsupportedSdkVersion, -2,60,,MountNameAlreadyExists, - -2,1000,2999,HandledBySystemProcess, -2,1001,,PartitionNotFound, -2,1002,,TargetNotFound, -2,1003,,MmcPatrolDataNotInitialized, -2,1004,,NcaExternalKeyUnavailable,The requested external key was not found - -2,2000,2499,SdCardAccessFailed, -2,2001,,PortSdCardNoDevice, -2,2002,,PortSdCardNotActivated, -2,2003,,PortSdCardDeviceRemoved, -2,2004,,PortSdCardNotAwakened, - -2,2032,2126,PortSdCardCommunicationError, -2,2033,2046,PortSdCardCommunicationNotAttained, -2,2034,,PortSdCardResponseIndexError, -2,2035,,PortSdCardResponseEndBitError, -2,2036,,PortSdCardResponseCrcError, -2,2037,,PortSdCardResponseTimeoutError, -2,2038,,PortSdCardDataEndBitError, -2,2039,,PortSdCardDataCrcError, -2,2040,,PortSdCardDataTimeoutError, -2,2041,,PortSdCardAutoCommandResponseIndexError, -2,2042,,PortSdCardAutoCommandResponseEndBitError, -2,2043,,PortSdCardAutoCommandResponseCrcError, -2,2044,,PortSdCardAutoCommandResponseTimeoutError, -2,2045,,PortSdCardCommandCompleteSoftwareTimeout, -2,2046,,PortSdCardTransferCompleteSoftwareTimeout, - -2,2048,2070,PortSdCardDeviceStatusHasError, -2,2049,,PortSdCardDeviceStatusAddressOutOfRange, -2,2050,,PortSdCardDeviceStatusAddressMisaligned, -2,2051,,PortSdCardDeviceStatusBlockLenError, -2,2052,,PortSdCardDeviceStatusEraseSeqError, -2,2053,,PortSdCardDeviceStatusEraseParam, -2,2054,,PortSdCardDeviceStatusWpViolation, -2,2055,,PortSdCardDeviceStatusLockUnlockFailed, -2,2056,,PortSdCardDeviceStatusComCrcError, -2,2057,,PortSdCardDeviceStatusIllegalCommand, -2,2058,,PortSdCardDeviceStatusDeviceEccFailed, -2,2059,,PortSdCardDeviceStatusCcError, -2,2060,,PortSdCardDeviceStatusError, -2,2061,,PortSdCardDeviceStatusCidCsdOverwrite, -2,2062,,PortSdCardDeviceStatusWpEraseSkip, -2,2063,,PortSdCardDeviceStatusEraseReset, -2,2064,,PortSdCardDeviceStatusSwitchError, - -2,2072,,PortSdCardUnexpectedDeviceState, -2,2073,,PortSdCardUnexpectedDeviceCsdValue, -2,2074,,PortSdCardAbortTransactionSoftwareTimeout, -2,2075,,PortSdCardCommandInhibitCmdSoftwareTimeout, -2,2076,,PortSdCardCommandInhibitDatSoftwareTimeout, -2,2077,,PortSdCardBusySoftwareTimeout, -2,2078,,PortSdCardIssueTuningCommandSoftwareTimeout, -2,2079,,PortSdCardTuningFailed, -2,2080,,PortSdCardMmcInitializationSoftwareTimeout, -2,2081,,PortSdCardMmcNotSupportExtendedCsd, -2,2082,,PortSdCardUnexpectedMmcExtendedCsdValue, -2,2083,,PortSdCardMmcEraseSoftwareTimeout, -2,2084,,PortSdCardSdCardValidationError, -2,2085,,PortSdCardSdCardInitializationSoftwareTimeout, -2,2086,,PortSdCardSdCardGetValidRcaSoftwareTimeout, -2,2087,,PortSdCardUnexpectedSdCardAcmdDisabled, -2,2088,,PortSdCardSdCardNotSupportSwitchFunctionStatus, -2,2089,,PortSdCardUnexpectedSdCardSwitchFunctionStatus, -2,2090,,PortSdCardSdCardNotSupportAccessMode, -2,2091,,PortSdCardSdCardNot4BitBusWidthAtUhsIMode, -2,2092,,PortSdCardSdCardNotSupportSdr104AndSdr50, -2,2093,,PortSdCardSdCardCannotSwitchAccessMode, -2,2094,,PortSdCardSdCardFailedSwitchAccessMode, -2,2095,,PortSdCardSdCardUnacceptableCurrentConsumption, -2,2096,,PortSdCardSdCardNotReadyToVoltageSwitch, -2,2097,,PortSdCardSdCardNotCompleteVoltageSwitch, - -2,2128,2158,PortSdCardHostControllerUnexpected, -2,2129,,PortSdCardInternalClockStableSoftwareTimeout, -2,2130,,PortSdCardSdHostStandardUnknownAutoCmdError, -2,2131,,PortSdCardSdHostStandardUnknownError, -2,2132,,PortSdCardSdmmcDllCalibrationSoftwareTimeout, -2,2133,,PortSdCardSdmmcDllApplicationSoftwareTimeout, -2,2134,,PortSdCardSdHostStandardFailSwitchTo18V, - -2,2160,2190,PortSdCardInternalError, -2,2161,,PortSdCardNoWaitedInterrupt, -2,2162,,PortSdCardWaitInterruptSoftwareTimeout, - -2,2192,,PortSdCardAbortCommandIssued, -2,2200,,PortSdCardNotSupported, -2,2201,,PortSdCardNotImplemented, - -2,2498,,SdCardFileSystemInvalidatedByRemoved, - -2,2500,2999,GameCardAccessFailed, -2,2503,,InvalidBufferForGameCard, -2,2520,,GameCardNotInserted, -2,2951,,GameCardNotInsertedOnGetHandle, -2,2952,,InvalidGameCardHandleOnRead, -2,2954,,InvalidGameCardHandleOnGetCardInfo, -2,2960,,InvalidGameCardHandleOnOpenNormalPartition, -2,2961,,InvalidGameCardHandleOnOpenSecurePartition, - -2,3000,7999,Internal, -2,3001,,NotImplemented, -2,3002,,UnsupportedVersion, -2,3003,,SaveDataPathAlreadyExists, -2,3005,,OutOfRange, - -2,3100,,SystemPartitionNotReady, - -2,3200,3499,AllocationMemoryFailed, -2,3211,,AllocationMemoryFailedInFileSystemAccessorA, -2,3212,,AllocationMemoryFailedInFileSystemAccessorB, -2,3213,,AllocationMemoryFailedInApplicationA, -2,3215,,AllocationMemoryFailedInBisA, -2,3216,,AllocationMemoryFailedInBisB, -2,3217,,AllocationMemoryFailedInBisC, -2,3218,,AllocationMemoryFailedInCodeA, -2,3219,,AllocationMemoryFailedInContentA, -2,3220,,AllocationMemoryFailedInContentStorageA, -2,3221,,AllocationMemoryFailedInContentStorageB, -2,3222,,AllocationMemoryFailedInDataA, -2,3223,,AllocationMemoryFailedInDataB, -2,3224,,AllocationMemoryFailedInDeviceSaveDataA, -2,3225,,AllocationMemoryFailedInGameCardA, -2,3226,,AllocationMemoryFailedInGameCardB, -2,3227,,AllocationMemoryFailedInGameCardC, -2,3228,,AllocationMemoryFailedInGameCardD, -2,3232,,AllocationMemoryFailedInImageDirectoryA, -2,3244,,AllocationMemoryFailedInSdCardA, -2,3245,,AllocationMemoryFailedInSdCardB, -2,3246,,AllocationMemoryFailedInSystemSaveDataA, -2,3247,,AllocationMemoryFailedInRomFsFileSystemA, -2,3248,,AllocationMemoryFailedInRomFsFileSystemB, -2,3249,,AllocationMemoryFailedInRomFsFileSystemC, -2,3256,,AllocationMemoryFailedInNcaFileSystemServiceImplA,In ParseNsp allocating FileStorageBasedFileSystem -2,3257,,AllocationMemoryFailedInNcaFileSystemServiceImplB,In ParseNca allocating FileStorageBasedFileSystem -2,3258,,AllocationMemoryFailedInProgramRegistryManagerA,In RegisterProgram allocating ProgramInfoNode -2,3264,,AllocationMemoryFailedFatFileSystemA,In Initialize allocating ProgramInfoNode -2,3280,,AllocationMemoryFailedInPartitionFileSystemCreatorA,In Create allocating PartitionFileSystemCore -2,3281,,AllocationMemoryFailedInRomFileSystemCreatorA, -2,3288,,AllocationMemoryFailedInStorageOnNcaCreatorA, -2,3289,,AllocationMemoryFailedInStorageOnNcaCreatorB, -2,3294,,AllocationMemoryFailedInFileSystemBuddyHeapA, -2,3295,,AllocationMemoryFailedInFileSystemBufferManagerA, -2,3296,,AllocationMemoryFailedInBlockCacheBufferedStorageA, -2,3297,,AllocationMemoryFailedInBlockCacheBufferedStorageB, -2,3304,,AllocationMemoryFailedInIntegrityVerificationStorageA, -2,3305,,AllocationMemoryFailedInIntegrityVerificationStorageB, -2,3312,,AllocationMemoryFailedInAesXtsFileA,In Initialize allocating FileStorage -2,3313,,AllocationMemoryFailedInAesXtsFileB,In Initialize allocating AesXtsStorage -2,3314,,AllocationMemoryFailedInAesXtsFileC,In Initialize allocating AlignmentMatchingStoragePooledBuffer -2,3315,,AllocationMemoryFailedInAesXtsFileD,In Initialize allocating StorageFile -2,3321,,AllocationMemoryFailedInDirectorySaveDataFileSystem, -2,3341,,AllocationMemoryFailedInNcaFileSystemDriverI, -2,3347,,AllocationMemoryFailedInPartitionFileSystemA,In Initialize allocating PartitionFileSystemMetaCore -2,3348,,AllocationMemoryFailedInPartitionFileSystemB,In DoOpenFile allocating PartitionFile -2,3349,,AllocationMemoryFailedInPartitionFileSystemC,In DoOpenDirectory allocating PartitionDirectory -2,3350,,AllocationMemoryFailedInPartitionFileSystemMetaA,In Initialize allocating metadata buffer -2,3351,,AllocationMemoryFailedInPartitionFileSystemMetaB,In Sha256 Initialize allocating metadata buffer -2,3352,,AllocationMemoryFailedInRomFsFileSystemD, -2,3355,,AllocationMemoryFailedInSubdirectoryFileSystemA,In Initialize allocating RootPathBuffer -2,3363,,AllocationMemoryFailedInNcaReaderA, -2,3365,,AllocationMemoryFailedInRegisterA, -2,3366,,AllocationMemoryFailedInRegisterB, -2,3367,,AllocationMemoryFailedInPathNormalizer, -2,3375,,AllocationMemoryFailedInDbmRomKeyValueStorage, -2,3377,,AllocationMemoryFailedInRomFsFileSystemE, -2,3383,,AllocationMemoryFailedInAesXtsFileE,In Initialize -2,3386,,AllocationMemoryFailedInReadOnlyFileSystemA, -2,3394,,AllocationMemoryFailedInEncryptedFileSystemCreatorA,In Create allocating AesXtsFileSystem -2,3399,,AllocationMemoryFailedInAesCtrCounterExtendedStorageA, -2,3400,,AllocationMemoryFailedInAesCtrCounterExtendedStorageB, -2,3407,,AllocationMemoryFailedInFileSystemInterfaceAdapter, In OpenFile or OpenDirectory -2,3420,,AllocationMemoryFailedInNew, -2,3411,,AllocationMemoryFailedInBufferedStorageA, -2,3412,,AllocationMemoryFailedInIntegrityRomFsStorageA, -2,3421,,AllocationMemoryFailedInCreateShared, -2,3422,,AllocationMemoryFailedInMakeUnique, -2,3423,,AllocationMemoryFailedInAllocateShared, -2,3424,,AllocationMemoryFailedPooledBufferNotEnoughSize, - -2,3500,3999,MmcAccessFailed, -2,3501,,PortMmcNoDevice, -2,3502,,PortMmcNotActivated, -2,3503,,PortMmcDeviceRemoved, -2,3504,,PortMmcNotAwakened, - -2,3532,3626,PortMmcCommunicationError, -2,3533,3546,PortMmcCommunicationNotAttained, -2,3534,,PortMmcResponseIndexError, -2,3535,,PortMmcResponseEndBitError, -2,3536,,PortMmcResponseCrcError, -2,3537,,PortMmcResponseTimeoutError, -2,3538,,PortMmcDataEndBitError, -2,3539,,PortMmcDataCrcError, -2,3540,,PortMmcDataTimeoutError, -2,3541,,PortMmcAutoCommandResponseIndexError, -2,3542,,PortMmcAutoCommandResponseEndBitError, -2,3543,,PortMmcAutoCommandResponseCrcError, -2,3544,,PortMmcAutoCommandResponseTimeoutError, -2,3545,,PortMmcCommandCompleteSoftwareTimeout, -2,3546,,PortMmcTransferCompleteSoftwareTimeout, - -2,3548,3570,PortMmcDeviceStatusHasError, -2,3549,,PortMmcDeviceStatusAddressOutOfRange, -2,3550,,PortMmcDeviceStatusAddressMisaligned, -2,3551,,PortMmcDeviceStatusBlockLenError, -2,3552,,PortMmcDeviceStatusEraseSeqError, -2,3553,,PortMmcDeviceStatusEraseParam, -2,3554,,PortMmcDeviceStatusWpViolation, -2,3555,,PortMmcDeviceStatusLockUnlockFailed, -2,3556,,PortMmcDeviceStatusComCrcError, -2,3557,,PortMmcDeviceStatusIllegalCommand, -2,3558,,PortMmcDeviceStatusDeviceEccFailed, -2,3559,,PortMmcDeviceStatusCcError, -2,3560,,PortMmcDeviceStatusError, -2,3561,,PortMmcDeviceStatusCidCsdOverwrite, -2,3562,,PortMmcDeviceStatusWpEraseSkip, -2,3563,,PortMmcDeviceStatusEraseReset, -2,3564,,PortMmcDeviceStatusSwitchError, - -2,3572,,PortMmcUnexpectedDeviceState, -2,3573,,PortMmcUnexpectedDeviceCsdValue, -2,3574,,PortMmcAbortTransactionSoftwareTimeout, -2,3575,,PortMmcCommandInhibitCmdSoftwareTimeout, -2,3576,,PortMmcCommandInhibitDatSoftwareTimeout, -2,3577,,PortMmcBusySoftwareTimeout, -2,3578,,PortMmcIssueTuningCommandSoftwareTimeout, -2,3579,,PortMmcTuningFailed, -2,3580,,PortMmcMmcInitializationSoftwareTimeout, -2,3581,,PortMmcMmcNotSupportExtendedCsd, -2,3582,,PortMmcUnexpectedMmcExtendedCsdValue, -2,3583,,PortMmcMmcEraseSoftwareTimeout, -2,3584,,PortMmcSdCardValidationError, -2,3585,,PortMmcSdCardInitializationSoftwareTimeout, -2,3586,,PortMmcSdCardGetValidRcaSoftwareTimeout, -2,3587,,PortMmcUnexpectedSdCardAcmdDisabled, -2,3588,,PortMmcSdCardNotSupportSwitchFunctionStatus, -2,3589,,PortMmcUnexpectedSdCardSwitchFunctionStatus, -2,3590,,PortMmcSdCardNotSupportAccessMode, -2,3591,,PortMmcSdCardNot4BitBusWidthAtUhsIMode, -2,3592,,PortMmcSdCardNotSupportSdr104AndSdr50, -2,3593,,PortMmcSdCardCannotSwitchAccessMode, -2,3594,,PortMmcSdCardFailedSwitchAccessMode, -2,3595,,PortMmcSdCardUnacceptableCurrentConsumption, -2,3596,,PortMmcSdCardNotReadyToVoltageSwitch, -2,3597,,PortMmcSdCardNotCompleteVoltageSwitch, - -2,3628,3658,PortMmcHostControllerUnexpected, -2,3629,,PortMmcInternalClockStableSoftwareTimeout, -2,3630,,PortMmcSdHostStandardUnknownAutoCmdError, -2,3631,,PortMmcSdHostStandardUnknownError, -2,3632,,PortMmcSdmmcDllCalibrationSoftwareTimeout, -2,3633,,PortMmcSdmmcDllApplicationSoftwareTimeout, -2,3634,,PortMmcSdHostStandardFailSwitchTo18V, - -2,3660,3690,PortMmcInternalError, -2,3661,,PortMmcNoWaitedInterrupt, -2,3662,,PortMmcWaitInterruptSoftwareTimeout, - -2,3692,,PortMmcAbortCommandIssued, -2,3700,,PortMmcNotSupported, -2,3701,,PortMmcNotImplemented, - -2,4000,4999,DataCorrupted, -2,4001,4299,RomCorrupted, -2,4002,,UnsupportedRomVersion, - -2,4011,4019,AesCtrCounterExtendedStorageCorrupted, -2,4012,,InvalidAesCtrCounterExtendedEntryOffset, -2,4013,,InvalidAesCtrCounterExtendedTableSize, -2,4014,,InvalidAesCtrCounterExtendedGeneration, -2,4015,,InvalidAesCtrCounterExtendedOffset, - -2,4021,4029,IndirectStorageCorrupted, -2,4022,,InvalidIndirectEntryOffset, -2,4023,,InvalidIndirectEntryStorageIndex, -2,4024,,InvalidIndirectStorageSize, -2,4025,,InvalidIndirectVirtualOffset, -2,4026,,InvalidIndirectPhysicalOffset, -2,4027,,InvalidIndirectStorageIndex, - -2,4031,4039,BucketTreeCorrupted, -2,4032,,InvalidBucketTreeSignature, -2,4033,,InvalidBucketTreeEntryCount, -2,4034,,InvalidBucketTreeNodeEntryCount, -2,4035,,InvalidBucketTreeNodeOffset, -2,4036,,InvalidBucketTreeEntryOffset, -2,4037,,InvalidBucketTreeEntrySetOffset, -2,4038,,InvalidBucketTreeNodeIndex, -2,4039,,InvalidBucketTreeVirtualOffset, - -2,4041,4139,RomNcaCorrupted, -2,4051,4069,RomNcaFileSystemCorrupted, -2,4052,,InvalidRomNcaFileSystemType, -2,4053,,InvalidRomAcidFileSize, -2,4054,,InvalidRomAcidSize, -2,4055,,InvalidRomAcid, -2,4056,,RomAcidVerificationFailed, -2,4057,,InvalidRomNcaSignature, -2,4058,,RomNcaHeaderSignature1VerificationFailed, -2,4059,,RomNcaHeaderSignature2VerificationFailed, -2,4060,,RomNcaFsHeaderHashVerificationFailed, -2,4061,,InvalidRomNcaKeyIndex, -2,4062,,InvalidRomNcaFsHeaderHashType, -2,4063,,InvalidRomNcaFsHeaderEncryptionType, - -2,4071,4079,RomNcaHierarchicalSha256StorageCorrupted, -2,4072,,InvalidRomHierarchicalSha256BlockSize, -2,4073,,InvalidRomHierarchicalSha256LayerCount, -2,4074,,RomHierarchicalSha256BaseStorageTooLarge, -2,4075,,RomHierarchicalSha256HashVerificationFailed, - -2,4141,4179,RomIntegrityVerificationStorageCorrupted, -2,4142,,IncorrectRomIntegrityVerificationMagic, -2,4143,,InvalidRomZeroHash, -2,4144,,RomNonRealDataVerificationFailed, -2,4145,,InvalidRomHierarchicalIntegrityVerificationLayerCount, - -2,4151,4159,RomRealDataVerificationFailed, -2,4152,,ClearedRomRealDataVerificationFailed, -2,4153,,UnclearedRomRealDataVerificationFailed, - -2,4181,4199,RomPartitionFileSystemCorrupted, -2,4182,,InvalidRomSha256PartitionHashTarget, -2,4183,,RomSha256PartitionHashVerificationFailed, -2,4184,,RomPartitionSignatureVerificationFailed, -2,4185,,RomSha256PartitionSignatureVerificationFailed, -2,4186,,InvalidRomPartitionEntryOffset, -2,4187,,InvalidRomSha256PartitionMetaDataSize, - -2,4201,4219,RomBuiltInStorageCorrupted, -2,4202,,RomGptHeaderVerificationFailed, - -2,4241,4259,RomHostFileSystemCorrupted, -2,4242,,RomHostEntryCorrupted, -2,4243,,RomHostFileDataCorrupted, -2,4244,,RomHostFileCorrupted, -2,4245,,InvalidRomHostHandle, - -2,4261,4279,RomDatabaseCorrupted, -2,4262,,InvalidRomAllocationTableBlock, -2,4263,,InvalidRomKeyValueListElementIndex, - -2,4301,4499,SaveDataCorrupted, -2,4302,,UnsupportedSaveVersion, -2,4303,,InvalidSaveDataEntryType, -2,4315,,InvalidSaveDataHeader, -2,4362,,InvalidSaveDataIvfcMagic, -2,4363,,InvalidSaveDataIvfcHashValidationBit, -2,4364,,InvalidSaveDataIvfcHash, -2,4372,,EmptySaveDataIvfcHash, -2,4373,,InvalidSaveDataHashInIvfcTopLayer, - -2,4402,,SaveDataInvalidGptPartitionSignature, -2,4427,,IncompleteBlockInZeroBitmapHashStorageFileSaveData, -2,4441,4459,SaveDataHostFileSystemCorrupted, -2,4442,,SaveDataHostEntryCorrupted, -2,4443,,SaveDataHostFileDataCorrupted, -2,4444,,SaveDataHostFileCorrupted, -2,4445,,InvalidSaveDataHostHandle, - -2,4462,,SaveDataAllocationTableCorrupted, -2,4463,,SaveDataFileTableCorrupted, -2,4464,,AllocationTableIteratedRangeEntry, - -2,4501,4599,NcaCorrupted, -2,4508,,NcaBaseStorageOutOfRangeA, -2,4509,,NcaBaseStorageOutOfRangeB, - -2,4511,4529,NcaFileSystemCorrupted, -2,4512,,InvalidNcaFileSystemType, -2,4513,,InvalidAcidFileSize, -2,4514,,InvalidAcidSize, -2,4515,,InvalidAcid, -2,4516,,AcidVerificationFailed, -2,4517,,InvalidNcaSignature, -2,4518,,NcaHeaderSignature1VerificationFailed, -2,4519,,NcaHeaderSignature2VerificationFailed, -2,4520,,NcaFsHeaderHashVerificationFailed, -2,4521,,InvalidNcaKeyIndex, -2,4522,,InvalidNcaFsHeaderHashType, -2,4523,,InvalidNcaFsHeaderEncryptionType, -2,4524,,InvalidNcaPatchInfoIndirectSize, -2,4525,,InvalidNcaPatchInfoAesCtrExSize, -2,4526,,InvalidNcaPatchInfoAesCtrExOffset, -2,4527,,InvalidNcaId, -2,4528,,InvalidNcaHeader, -2,4529,,InvalidNcaFsHeader, - -2,4531,4539,NcaHierarchicalSha256StorageCorrupted, -2,4532,,InvalidHierarchicalSha256BlockSize, -2,4533,,InvalidHierarchicalSha256LayerCount, -2,4534,,HierarchicalSha256BaseStorageTooLarge, -2,4535,,HierarchicalSha256HashVerificationFailed, - -2,4543,,InvalidNcaHeader1SignatureKeyGeneration, - -2,4601,4639,IntegrityVerificationStorageCorrupted, -2,4602,,IncorrectIntegrityVerificationMagic, -2,4603,,InvalidZeroHash, -2,4604,,NonRealDataVerificationFailed, -2,4605,,InvalidHierarchicalIntegrityVerificationLayerCount, - -2,4611,4619,RealDataVerificationFailed, -2,4612,,ClearedRealDataVerificationFailed, -2,4613,,UnclearedRealDataVerificationFailed, - -2,4641,4659,PartitionFileSystemCorrupted, -2,4642,,InvalidSha256PartitionHashTarget, -2,4643,,Sha256PartitionHashVerificationFailed, -2,4644,,PartitionSignatureVerificationFailed, -2,4645,,Sha256PartitionSignatureVerificationFailed, -2,4646,,InvalidPartitionEntryOffset, -2,4647,,InvalidSha256PartitionMetaDataSize, - -2,4661,4679,BuiltInStorageCorrupted, -2,4662,,InvalidGptPartitionSignature, - -2,4681,4699,FatFileSystemCorrupted, -2,4685,,ExFatUnavailable, -2,4686,,InvalidFatFormatForBisUser, -2,4687,,InvalidFatFormatForBisSystem, -2,4688,,InvalidFatFormatForBisSafe, -2,4689,,InvalidFatFormatForBisCalibration, -2,4690,,InvalidFatFormatForSdCard, - -2,4701,4719,HostFileSystemCorrupted, -2,4702,,HostEntryCorrupted, -2,4703,,HostFileDataCorrupted, -2,4704,,HostFileCorrupted, -2,4705,,InvalidHostHandle, - -2,4721,4739,DatabaseCorrupted, -2,4722,,InvalidAllocationTableBlock, -2,4723,,InvalidKeyValueListElementIndex, -2,4724,,AllocationTableIteratedRangeEntryInternal, -2,4725,,InvalidAllocationTableOffset, - -2,4741,4759,AesXtsFileSystemCorrupted, -2,4742,,AesXtsFileHeaderTooShort, -2,4743,,AesXtsFileHeaderInvalidKeys, -2,4744,,AesXtsFileHeaderInvalidMagic, -2,4745,,AesXtsFileTooShort, -2,4746,,AesXtsFileHeaderTooShortInSetSize, -2,4747,,AesXtsFileHeaderInvalidKeysInRenameFile, -2,4748,,AesXtsFileHeaderInvalidKeysInSetSize, - -2,4761,4769,SaveDataTransferDataCorrupted, - -2,4771,4779,SignedSystemPartitionDataCorrupted, -2,4781,,GameCardLogoDataCorrupted, - -2,4790,4799,MultiCommitContextCorrupted, -2,4791,,InvalidMultiCommitContextVersion,The version of the multi-commit context file is too high for the current MultiCommitManager implementation. -2,4792,,InvalidMultiCommitContextState,The multi-commit has not been provisionally committed. - -2,4811,4819,ZeroBitmapFileCorrupted, -2,4812,,IncompleteBlockInZeroBitmapHashStorageFile, - -2,5000,5999,Unexpected, -2,5121,,UnexpectedFatFileSystemSectorCount, -2,5307,,UnexpectedErrorInHostFileFlush, -2,5308,,UnexpectedErrorInHostFileGetSize, -2,5309,,UnknownHostFileSystemError, -2,5320,,InvalidNcaMountPoint, - -2,6000,6499,PreconditionViolation, -2,6001,6199,InvalidArgument, -2,6002,6029,InvalidPath, -2,6003,,TooLongPath, -2,6004,,InvalidCharacter, -2,6005,,InvalidPathFormat, -2,6006,,DirectoryUnobtainable, -2,6007,,NotNormalized, - -2,6030,6059,InvalidPathForOperation, -2,6031,,DirectoryNotDeletable, -2,6032,,DirectoryNotRenamable, -2,6033,,IncompatiblePath, -2,6034,,RenameToOtherFileSystem, - -2,6061,,InvalidOffset, -2,6062,,InvalidSize, -2,6063,,NullptrArgument, -2,6064,,InvalidAlignment, -2,6065,,InvalidMountName, -2,6066,,ExtensionSizeTooLarge, -2,6067,,ExtensionSizeInvalid, -2,6068,,InvalidSaveDataInfoReader, -2,6069,,InvalidCacheStorageSize, -2,6070,,InvalidCacheStorageIndex, -2,6071,,InvalidCommitNameCount,Up to 10 file systems can be committed at the same time. -2,6072,,InvalidOpenMode, -2,6074,,InvalidDirectoryOpenMode, - -2,6080,6099,InvalidEnumValue, -2,6081,,InvalidSaveDataState, -2,6082,,InvalidSaveDataSpaceId, - -2,6200,6299,InvalidOperationForOpenMode, -2,6201,,FileExtensionWithoutOpenModeAllowAppend, -2,6202,,ReadUnpermitted, -2,6203,,WriteUnpermitted, - -2,6300,6399,UnsupportedOperation, -2,6301,,UnsupportedCommitTarget, -2,6302,,UnsupportedSetSizeForNotResizableSubStorage,Attempted to resize a non-resizable SubStorage. -2,6303,,UnsupportedSetSizeForResizableSubStorage,Attempted to resize a SubStorage that wasn't located at the end of the base storage. -2,6304,,UnsupportedSetSizeForMemoryStorage, -2,6305,,UnsupportedOperateRangeForMemoryStorage, -2,6306,,UnsupportedOperateRangeForFileStorage, -2,6307,,UnsupportedOperateRangeForFileHandleStorage, -2,6308,,UnsupportedOperateRangeForSwitchStorage, -2,6309,,UnsupportedOperateRangeForStorageServiceObjectAdapter, -2,6310,,UnsupportedWriteForAesCtrCounterExtendedStorage, -2,6311,,UnsupportedSetSizeForAesCtrCounterExtendedStorage, -2,6312,,UnsupportedOperateRangeForAesCtrCounterExtendedStorage, -2,6313,,UnsupportedWriteForAesCtrStorageExternal, -2,6314,,UnsupportedSetSizeForAesCtrStorageExternal, -2,6315,,UnsupportedSetSizeForAesCtrStorage, -2,6316,,UnsupportedSetSizeForHierarchicalIntegrityVerificationStorage, -2,6317,,UnsupportedOperateRangeForHierarchicalIntegrityVerificationStorage, -2,6318,,UnsupportedSetSizeForIntegrityVerificationStorage, -2,6319,,UnsupportedOperateRangeForNonSaveDataIntegrityVerificationStorage, -2,6320,,UnsupportedOperateRangeForIntegrityVerificationStorage, -2,6321,,UnsupportedSetSizeForBlockCacheBufferedStorage, -2,6322,,UnsupportedOperateRangeForNonSaveDataBlockCacheBufferedStorage, -2,6323,,UnsupportedOperateRangeForBlockCacheBufferedStorage, -2,6324,,UnsupportedWriteForIndirectStorage, -2,6325,,UnsupportedSetSizeForIndirectStorage, -2,6326,,UnsupportedOperateRangeForIndirectStorage, -2,6327,,UnsupportedWriteForZeroStorage, -2,6328,,UnsupportedSetSizeForZeroStorage, -2,6329,,UnsupportedSetSizeForHierarchicalSha256Storage, -2,6330,,UnsupportedWriteForReadOnlyBlockCacheStorage, -2,6331,,UnsupportedSetSizeForReadOnlyBlockCacheStorage, -2,6332,,UnsupportedSetSizeForIntegrityRomFsStorage, -2,6333,,UnsupportedSetSizeForDuplexStorage, -2,6334,,UnsupportedOperateRangeForDuplexStorage, -2,6335,,UnsupportedSetSizeForHierarchicalDuplexStorage, -2,6336,,UnsupportedGetSizeForRemapStorage, -2,6337,,UnsupportedSetSizeForRemapStorage, -2,6338,,UnsupportedOperateRangeForRemapStorage, -2,6339,,UnsupportedSetSizeForIntegritySaveDataStorage, -2,6340,,UnsupportedOperateRangeForIntegritySaveDataStorage, -2,6341,,UnsupportedSetSizeForJournalIntegritySaveDataStorage, -2,6342,,UnsupportedOperateRangeForJournalIntegritySaveDataStorage, -2,6343,,UnsupportedGetSizeForJournalStorage, -2,6344,,UnsupportedSetSizeForJournalStorage, -2,6345,,UnsupportedOperateRangeForJournalStorage, -2,6346,,UnsupportedSetSizeForUnionStorage, -2,6347,,UnsupportedSetSizeForAllocationTableStorage, -2,6348,,UnsupportedReadForWriteOnlyGameCardStorage, -2,6349,,UnsupportedSetSizeForWriteOnlyGameCardStorage, -2,6350,,UnsupportedWriteForReadOnlyGameCardStorage, -2,6351,,UnsupportedSetSizeForReadOnlyGameCardStorage, -2,6352,,UnsupportedOperateRangeForReadOnlyGameCardStorage, -2,6353,,UnsupportedSetSizeForSdmmcStorage, -2,6354,,UnsupportedOperateRangeForSdmmcStorage, -2,6355,,UnsupportedOperateRangeForFatFile, -2,6356,,UnsupportedOperateRangeForStorageFile, -2,6357,,UnsupportedSetSizeForInternalStorageConcatenationFile, -2,6358,,UnsupportedOperateRangeForInternalStorageConcatenationFile, -2,6359,,UnsupportedQueryEntryForConcatenationFileSystem, -2,6360,,UnsupportedOperateRangeForConcatenationFile, -2,6361,,UnsupportedSetSizeForZeroBitmapFile, -2,6362,,UnsupportedOperateRangeForFileServiceObjectAdapter,Called OperateRange with an invalid operation ID. -2,6363,,UnsupportedOperateRangeForAesXtsFile, -2,6364,,UnsupportedWriteForRomFsFileSystem, -2,6365,,UnsupportedCommitProvisionallyForRomFsFileSystem,Called RomFsFileSystem::CommitProvisionally. -2,6366,,UnsupportedGetTotalSpaceSizeForRomFsFileSystem, -2,6367,,UnsupportedWriteForRomFsFile, -2,6368,,UnsupportedOperateRangeForRomFsFile, -2,6369,,UnsupportedWriteForReadOnlyFileSystem, -2,6370,,UnsupportedCommitProvisionallyForReadOnlyFileSystem, -2,6371,,UnsupportedGetTotalSpaceSizeForReadOnlyFileSystem, -2,6372,,UnsupportedWriteForReadOnlyFile, -2,6373,,UnsupportedOperateRangeForReadOnlyFile, -2,6374,,UnsupportedWriteForPartitionFileSystem, -2,6375,,UnsupportedCommitProvisionallyForPartitionFileSystem,Called PartitionFileSystemCore::CommitProvisionally. -2,6376,,UnsupportedWriteForPartitionFile, -2,6377,,UnsupportedOperateRangeForPartitionFile, -2,6378,,UnsupportedOperateRangeForTmFileSystemFile, -2,6379,,UnsupportedWriteForSaveDataInternalStorageFileSystem, -2,6382,,UnsupportedCommitProvisionallyForApplicationTemporaryFileSystem, -2,6383,,UnsupportedCommitProvisionallyForSaveDataFileSystem, -2,6384,,UnsupportedCommitProvisionallyForDirectorySaveDataFileSystem,Called DirectorySaveDataFileSystem::CommitProvisionally on a non-user savedata. -2,6385,,UnsupportedWriteForZeroBitmapHashStorageFile, -2,6386,,UnsupportedSetSizeForZeroBitmapHashStorageFile, - -2,6400,6449,PermissionDenied, - -2,6452,,ExternalKeyAlreadyRegistered, -2,6454,,NeedFlush, -2,6455,,FileNotClosed, -2,6456,,DirectoryNotClosed, -2,6457,,WriteModeFileNotClosed, -2,6458,,AllocatorAlreadyRegistered, -2,6459,,DefaultAllocatorUsed, -2,6461,,AllocatorAlignmentViolation, -2,6463,,MultiCommitFileSystemAlreadyAdded,The provided file system has already been added to the multi-commit manager. -2,6465,,UserNotExist, -2,6466,,DefaultGlobalFileDataCacheEnabled, -2,6467,,SaveDataRootPathUnavailable, - -2,6600,6699,NotFound, -2,6605,,TargetProgramNotFound,Specified program is not found in the program registry. -2,6606,,TargetProgramIndexNotFound,Specified program index is not found - -2,6700,6799,OutOfResource, -2,6705,,BufferAllocationFailed, -2,6706,,MappingTableFull, -2,6707,,AllocationTableInsufficientFreeBlocks, -2,6709,,OpenCountLimit, -2,6710,,MultiCommitFileSystemLimit,The maximum number of file systems have been added to the multi-commit manager. - -2,6800,6899,MappingFailed, -2,6811,,MapFull, - -2,6900,6999,BadState, -2,6902,,NotInitialized, -2,6905,,NotMounted, -2,6906,,SaveDataIsExtending, - -2,7031,,SaveDataPorterInvalidated, - -2,7901,7904,DbmNotFound, -2,7902,,DbmKeyNotFound, -2,7903,,DbmFileNotFound, -2,7904,,DbmDirectoryNotFound, - -2,7906,,DbmAlreadyExists, -2,7907,,DbmKeyFull, -2,7908,,DbmDirectoryEntryFull, -2,7909,,DbmFileEntryFull, - -2,7910,7912,DbmFindFinished, -2,7911,,DbmFindKeyFinished, -2,7912,,DbmIterationFinished, - -2,7914,,DbmInvalidOperation, -2,7915,,DbmInvalidPathFormat, -2,7916,,DbmDirectoryNameTooLong, -2,7917,,DbmFileNameTooLong, - -3,4,,Busy, -3,8,,OutOfMemory, -3,9,,OutOfResource, -3,12,,OutOfVirtualAddressSpace, -3,13,,ResourceLimit, - -3,500,,OutOfHandles, -3,501,,InvalidHandle, -3,502,,InvalidCurrentMemoryState, -3,503,,InvalidTransferMemoryState, -3,504,,InvalidTransferMemorySize, -3,505,,OutOfTransferMemory, -3,506,,OutOfAddressSpace, - -5,1,,InvalidContentStorageBase, -5,2,,PlaceHolderAlreadyExists, -5,3,,PlaceHolderNotFound, -5,4,,ContentAlreadyExists, -5,5,,ContentNotFound, -5,7,,ContentMetaNotFound, -5,8,,AllocationFailed, -5,12,,UnknownStorage, - -5,100,,InvalidContentStorage, -5,110,,InvalidContentMetaDatabase, -5,130,,InvalidPackageFormat, -5,140,,InvalidContentHash, - -5,160,,InvalidInstallTaskState, -5,170,,InvalidPlaceHolderFile, -5,180,,BufferInsufficient, -5,190,,WriteToReadOnlyContentStorage, -5,200,,NotEnoughInstallSpace, -5,210,,SystemUpdateNotFoundInPackage, -5,220,,ContentInfoNotFound, -5,237,,DeltaNotFound, -5,240,,InvalidContentMetaKey, -5,280,,IgnorableInstallTicketFailure, - -5,310,,ContentStorageBaseNotFound, -5,330,,ListPartiallyNotCommitted, -5,360,,UnexpectedContentMetaPrepared, -5,380,,InvalidFirmwareVariation, - -5,250,258,ContentStorageNotActive, -5,251,,GameCardContentStorageNotActive, -5,252,,BuiltInSystemContentStorageNotActive, -5,253,,BuiltInUserContentStorageNotActive, -5,254,,SdCardContentStorageNotActive, -5,258,,UnknownContentStorageNotActive, - -5,260,268,ContentMetaDatabaseNotActive, -5,261,,GameCardContentMetaDatabaseNotActive, -5,262,,BuiltInSystemContentMetaDatabaseNotActive, -5,263,,BuiltInUserContentMetaDatabaseNotActive, -5,264,,SdCardContentMetaDatabaseNotActive, -5,268,,UnknownContentMetaDatabaseNotActive, - -5,290,299,InstallTaskCancelled, -5,291,,CreatePlaceHolderCancelled, -5,292,,WritePlaceHolderCancelled, - -5,8181,8191,InvalidArgument, -5,8182,,InvalidOffset, - -6,1,,EndOfQuery, -6,2,,InvalidCurrentMemory, -6,3,,NotSingleRegion, -6,4,,InvalidMemoryState, -6,5,,OutOfMemory, -6,6,,OutOfResource, -6,7,,NotSupported, -6,8,,InvalidHandle, -6,1023,,InternalError, - -8,2,,ProgramNotFound, -8,3,,DataNotFound, -8,4,,UnknownStorageId, -8,5,,LocationResolverNotFound, -8,6,,HtmlDocumentNotFound, -8,7,,AddOnContentNotFound, -8,8,,ControlNotFound, -8,9,,LegalInformationNotFound, -8,10,,DebugProgramNotFound, -8,90,,TooManyRegisteredPaths, - -9,1,,TooLongArgument, -9,2,,TooManyArguments, -9,3,,TooLargeMeta, -9,4,,InvalidMeta, -9,5,,InvalidNso, -9,6,,InvalidPath, -9,7,,TooManyProcesses, -9,8,,NotPinned, -9,9,,InvalidProgramId, -9,10,,InvalidVersion, -9,11,,InvalidAcidSignature, -9,12,,InvalidNcaSignature, - -9,51,,InsufficientAddressSpace, -9,52,,InvalidNro, -9,53,,InvalidNrr, -9,54,,InvalidSignature, -9,55,,InsufficientNroRegistrations, -9,56,,InsufficientNrrRegistrations, -9,57,,NroAlreadyLoaded, - -9,81,,InvalidAddress, -9,82,,InvalidSize, -9,84,,NotLoaded, -9,85,,NotRegistered, -9,86,,InvalidSession, -9,87,,InvalidProcess, - -9,100,,UnknownCapability, -9,103,,InvalidCapabilityKernelFlags, -9,104,,InvalidCapabilitySyscallMask, -9,106,,InvalidCapabilityMapRange, -9,107,,InvalidCapabilityMapPage, -9,111,,InvalidCapabilityInterruptPair, -9,113,,InvalidCapabilityApplicationType, -9,114,,InvalidCapabilityKernelVersion, -9,115,,InvalidCapabilityHandleTable, -9,116,,InvalidCapabilityDebugFlags, - -9,200,,InternalError, - -10,1,,NotSupported, -10,3,,PreconditionViolation, +Module,DescriptionStart,DescriptionEnd,Flags,Name,Summary + +1,7,,,OutOfSessions, +1,14,,,InvalidArgument, +1,33,,,NotImplemented, +1,54,,,StopProcessingException, +1,57,,,NoSynchronizationObject, +1,59,,,TerminationRequested, +1,70,,,NoEvent, + +1,101,,,InvalidSize, +1,102,,,InvalidAddress, +1,103,,,OutOfResource, +1,104,,,OutOfMemory, +1,105,,,OutOfHandles, +1,106,,,InvalidCurrentMemory, +1,108,,,InvalidNewMemoryPermission, +1,110,,,InvalidMemoryRegion, +1,112,,,InvalidPriority, +1,113,,,InvalidCoreId, +1,114,,,InvalidHandle, +1,115,,,InvalidPointer, +1,116,,,InvalidCombination, +1,117,,,TimedOut, +1,118,,,Cancelled, +1,119,,,OutOfRange, +1,120,,,InvalidEnumValue, +1,121,,,NotFound, +1,122,,,Busy, +1,123,,,SessionClosed, +1,124,,,NotHandled, +1,125,,,InvalidState, +1,126,,,ReservedUsed, +1,127,,,NotSupported, +1,128,,,Debug, +1,129,,,NoThread, +1,130,,,UnknownThread, +1,131,,,PortClosed, +1,132,,,LimitReached, +1,133,,,InvalidMemoryPool, + +1,258,,,ReceiveListBroken, +1,259,,,OutOfAddressSpace, +1,260,,,MessageTooLarge, + +1,517,,,InvalidProcessId, +1,518,,,InvalidThreadId, +1,519,,,InvalidId, +1,520,,,ProcessTerminated, + +2,0,999,,HandledByAllProcess, +2,1,,,PathNotFound,Specified path does not exist +2,2,,,PathAlreadyExists,Specified path already exists +2,7,,,TargetLocked,"Resource already in use (file already opened, savedata filesystem already mounted)" +2,8,,,DirectoryNotEmpty,Specified directory is not empty when trying to delete it +2,13,,,DirectoryStatusChanged, + +2,30,45,,UsableSpaceNotEnough, +2,31,,,UsableSpaceNotEnoughForSaveData, +2,34,38,,UsableSpaceNotEnoughForBis, +2,35,,,UsableSpaceNotEnoughForBisCalibration, +2,36,,,UsableSpaceNotEnoughForBisSafe, +2,37,,,UsableSpaceNotEnoughForBisUser, +2,38,,,UsableSpaceNotEnoughForBisSystem, +2,39,,,UsableSpaceNotEnoughForSdCard, +2,50,,,UnsupportedSdkVersion, +2,60,,,MountNameAlreadyExists, + +2,1000,2999,,HandledBySystemProcess, +2,1001,,,PartitionNotFound, +2,1002,,,TargetNotFound, +2,1003,,,MmcPatrolDataNotInitialized, +2,1004,,,NcaExternalKeyUnavailable,The requested external key was not found + +2,2000,2499,,SdCardAccessFailed, +2,2001,,,PortSdCardNoDevice, +2,2002,,,PortSdCardNotActivated, +2,2003,,,PortSdCardDeviceRemoved, +2,2004,,,PortSdCardNotAwakened, + +2,2032,2126,,PortSdCardCommunicationError, +2,2033,2046,,PortSdCardCommunicationNotAttained, +2,2034,,,PortSdCardResponseIndexError, +2,2035,,,PortSdCardResponseEndBitError, +2,2036,,,PortSdCardResponseCrcError, +2,2037,,,PortSdCardResponseTimeoutError, +2,2038,,,PortSdCardDataEndBitError, +2,2039,,,PortSdCardDataCrcError, +2,2040,,,PortSdCardDataTimeoutError, +2,2041,,,PortSdCardAutoCommandResponseIndexError, +2,2042,,,PortSdCardAutoCommandResponseEndBitError, +2,2043,,,PortSdCardAutoCommandResponseCrcError, +2,2044,,,PortSdCardAutoCommandResponseTimeoutError, +2,2045,,,PortSdCardCommandCompleteSoftwareTimeout, +2,2046,,,PortSdCardTransferCompleteSoftwareTimeout, + +2,2048,2070,,PortSdCardDeviceStatusHasError, +2,2049,,,PortSdCardDeviceStatusAddressOutOfRange, +2,2050,,,PortSdCardDeviceStatusAddressMisaligned, +2,2051,,,PortSdCardDeviceStatusBlockLenError, +2,2052,,,PortSdCardDeviceStatusEraseSeqError, +2,2053,,,PortSdCardDeviceStatusEraseParam, +2,2054,,,PortSdCardDeviceStatusWpViolation, +2,2055,,,PortSdCardDeviceStatusLockUnlockFailed, +2,2056,,,PortSdCardDeviceStatusComCrcError, +2,2057,,,PortSdCardDeviceStatusIllegalCommand, +2,2058,,,PortSdCardDeviceStatusDeviceEccFailed, +2,2059,,,PortSdCardDeviceStatusCcError, +2,2060,,,PortSdCardDeviceStatusError, +2,2061,,,PortSdCardDeviceStatusCidCsdOverwrite, +2,2062,,,PortSdCardDeviceStatusWpEraseSkip, +2,2063,,,PortSdCardDeviceStatusEraseReset, +2,2064,,,PortSdCardDeviceStatusSwitchError, + +2,2072,,,PortSdCardUnexpectedDeviceState, +2,2073,,,PortSdCardUnexpectedDeviceCsdValue, +2,2074,,,PortSdCardAbortTransactionSoftwareTimeout, +2,2075,,,PortSdCardCommandInhibitCmdSoftwareTimeout, +2,2076,,,PortSdCardCommandInhibitDatSoftwareTimeout, +2,2077,,,PortSdCardBusySoftwareTimeout, +2,2078,,,PortSdCardIssueTuningCommandSoftwareTimeout, +2,2079,,,PortSdCardTuningFailed, +2,2080,,,PortSdCardMmcInitializationSoftwareTimeout, +2,2081,,,PortSdCardMmcNotSupportExtendedCsd, +2,2082,,,PortSdCardUnexpectedMmcExtendedCsdValue, +2,2083,,,PortSdCardMmcEraseSoftwareTimeout, +2,2084,,,PortSdCardSdCardValidationError, +2,2085,,,PortSdCardSdCardInitializationSoftwareTimeout, +2,2086,,,PortSdCardSdCardGetValidRcaSoftwareTimeout, +2,2087,,,PortSdCardUnexpectedSdCardAcmdDisabled, +2,2088,,,PortSdCardSdCardNotSupportSwitchFunctionStatus, +2,2089,,,PortSdCardUnexpectedSdCardSwitchFunctionStatus, +2,2090,,,PortSdCardSdCardNotSupportAccessMode, +2,2091,,,PortSdCardSdCardNot4BitBusWidthAtUhsIMode, +2,2092,,,PortSdCardSdCardNotSupportSdr104AndSdr50, +2,2093,,,PortSdCardSdCardCannotSwitchAccessMode, +2,2094,,,PortSdCardSdCardFailedSwitchAccessMode, +2,2095,,,PortSdCardSdCardUnacceptableCurrentConsumption, +2,2096,,,PortSdCardSdCardNotReadyToVoltageSwitch, +2,2097,,,PortSdCardSdCardNotCompleteVoltageSwitch, + +2,2128,2158,,PortSdCardHostControllerUnexpected, +2,2129,,,PortSdCardInternalClockStableSoftwareTimeout, +2,2130,,,PortSdCardSdHostStandardUnknownAutoCmdError, +2,2131,,,PortSdCardSdHostStandardUnknownError, +2,2132,,,PortSdCardSdmmcDllCalibrationSoftwareTimeout, +2,2133,,,PortSdCardSdmmcDllApplicationSoftwareTimeout, +2,2134,,,PortSdCardSdHostStandardFailSwitchTo18V, + +2,2160,2190,,PortSdCardInternalError, +2,2161,,,PortSdCardNoWaitedInterrupt, +2,2162,,,PortSdCardWaitInterruptSoftwareTimeout, + +2,2192,,,PortSdCardAbortCommandIssued, +2,2200,,,PortSdCardNotSupported, +2,2201,,,PortSdCardNotImplemented, + +2,2498,,,SdCardFileSystemInvalidatedByRemoved, + +2,2500,2999,,GameCardAccessFailed, +2,2503,,,InvalidBufferForGameCard, +2,2520,,,GameCardNotInserted, +2,2951,,,GameCardNotInsertedOnGetHandle, +2,2952,,,InvalidGameCardHandleOnRead, +2,2954,,,InvalidGameCardHandleOnGetCardInfo, +2,2960,,,InvalidGameCardHandleOnOpenNormalPartition, +2,2961,,,InvalidGameCardHandleOnOpenSecurePartition, + +2,3000,7999,,Internal, +2,3001,,,NotImplemented, +2,3002,,,UnsupportedVersion, +2,3003,,,SaveDataPathAlreadyExists, +2,3005,,,OutOfRange, + +2,3100,,,SystemPartitionNotReady, + +2,3200,3499,,AllocationMemoryFailed, +2,3211,,,AllocationMemoryFailedInFileSystemAccessorA, +2,3212,,,AllocationMemoryFailedInFileSystemAccessorB, +2,3213,,,AllocationMemoryFailedInApplicationA, +2,3215,,,AllocationMemoryFailedInBisA, +2,3216,,,AllocationMemoryFailedInBisB, +2,3217,,,AllocationMemoryFailedInBisC, +2,3218,,,AllocationMemoryFailedInCodeA, +2,3219,,,AllocationMemoryFailedInContentA, +2,3220,,,AllocationMemoryFailedInContentStorageA, +2,3221,,,AllocationMemoryFailedInContentStorageB, +2,3222,,,AllocationMemoryFailedInDataA, +2,3223,,,AllocationMemoryFailedInDataB, +2,3224,,,AllocationMemoryFailedInDeviceSaveDataA, +2,3225,,,AllocationMemoryFailedInGameCardA, +2,3226,,,AllocationMemoryFailedInGameCardB, +2,3227,,,AllocationMemoryFailedInGameCardC, +2,3228,,,AllocationMemoryFailedInGameCardD, +2,3232,,,AllocationMemoryFailedInImageDirectoryA, +2,3244,,,AllocationMemoryFailedInSdCardA, +2,3245,,,AllocationMemoryFailedInSdCardB, +2,3246,,,AllocationMemoryFailedInSystemSaveDataA, +2,3247,,,AllocationMemoryFailedInRomFsFileSystemA, +2,3248,,,AllocationMemoryFailedInRomFsFileSystemB, +2,3249,,,AllocationMemoryFailedInRomFsFileSystemC, +2,3256,,,AllocationMemoryFailedInNcaFileSystemServiceImplA,In ParseNsp allocating FileStorageBasedFileSystem +2,3257,,,AllocationMemoryFailedInNcaFileSystemServiceImplB,In ParseNca allocating FileStorageBasedFileSystem +2,3258,,,AllocationMemoryFailedInProgramRegistryManagerA,In RegisterProgram allocating ProgramInfoNode +2,3264,,,AllocationMemoryFailedFatFileSystemA,In Initialize allocating ProgramInfoNode +2,3280,,,AllocationMemoryFailedInPartitionFileSystemCreatorA,In Create allocating PartitionFileSystemCore +2,3281,,,AllocationMemoryFailedInRomFileSystemCreatorA, +2,3288,,,AllocationMemoryFailedInStorageOnNcaCreatorA, +2,3289,,,AllocationMemoryFailedInStorageOnNcaCreatorB, +2,3294,,,AllocationMemoryFailedInFileSystemBuddyHeapA, +2,3295,,,AllocationMemoryFailedInFileSystemBufferManagerA, +2,3296,,,AllocationMemoryFailedInBlockCacheBufferedStorageA, +2,3297,,,AllocationMemoryFailedInBlockCacheBufferedStorageB, +2,3304,,,AllocationMemoryFailedInIntegrityVerificationStorageA, +2,3305,,,AllocationMemoryFailedInIntegrityVerificationStorageB, +2,3312,,,AllocationMemoryFailedInAesXtsFileA,In Initialize allocating FileStorage +2,3313,,,AllocationMemoryFailedInAesXtsFileB,In Initialize allocating AesXtsStorage +2,3314,,,AllocationMemoryFailedInAesXtsFileC,In Initialize allocating AlignmentMatchingStoragePooledBuffer +2,3315,,,AllocationMemoryFailedInAesXtsFileD,In Initialize allocating StorageFile +2,3321,,,AllocationMemoryFailedInDirectorySaveDataFileSystem, +2,3341,,,AllocationMemoryFailedInNcaFileSystemDriverI, +2,3347,,,AllocationMemoryFailedInPartitionFileSystemA,In Initialize allocating PartitionFileSystemMetaCore +2,3348,,,AllocationMemoryFailedInPartitionFileSystemB,In DoOpenFile allocating PartitionFile +2,3349,,,AllocationMemoryFailedInPartitionFileSystemC,In DoOpenDirectory allocating PartitionDirectory +2,3350,,,AllocationMemoryFailedInPartitionFileSystemMetaA,In Initialize allocating metadata buffer +2,3351,,,AllocationMemoryFailedInPartitionFileSystemMetaB,In Sha256 Initialize allocating metadata buffer +2,3352,,,AllocationMemoryFailedInRomFsFileSystemD, +2,3355,,,AllocationMemoryFailedInSubdirectoryFileSystemA,In Initialize allocating RootPathBuffer +2,3363,,,AllocationMemoryFailedInNcaReaderA, +2,3365,,,AllocationMemoryFailedInRegisterA, +2,3366,,,AllocationMemoryFailedInRegisterB, +2,3367,,,AllocationMemoryFailedInPathNormalizer, +2,3375,,,AllocationMemoryFailedInDbmRomKeyValueStorage, +2,3377,,,AllocationMemoryFailedInRomFsFileSystemE, +2,3383,,,AllocationMemoryFailedInAesXtsFileE,In Initialize +2,3386,,,AllocationMemoryFailedInReadOnlyFileSystemA, +2,3394,,,AllocationMemoryFailedInEncryptedFileSystemCreatorA,In Create allocating AesXtsFileSystem +2,3399,,,AllocationMemoryFailedInAesCtrCounterExtendedStorageA, +2,3400,,,AllocationMemoryFailedInAesCtrCounterExtendedStorageB, +2,3407,,,AllocationMemoryFailedInFileSystemInterfaceAdapter, In OpenFile or OpenDirectory +2,3420,,,AllocationMemoryFailedInNew, +2,3411,,,AllocationMemoryFailedInBufferedStorageA, +2,3412,,,AllocationMemoryFailedInIntegrityRomFsStorageA, +2,3421,,,AllocationMemoryFailedInCreateShared, +2,3422,,,AllocationMemoryFailedInMakeUnique, +2,3423,,,AllocationMemoryFailedInAllocateShared, +2,3424,,,AllocationMemoryFailedPooledBufferNotEnoughSize, + +2,3500,3999,,MmcAccessFailed, +2,3501,,,PortMmcNoDevice, +2,3502,,,PortMmcNotActivated, +2,3503,,,PortMmcDeviceRemoved, +2,3504,,,PortMmcNotAwakened, + +2,3532,3626,,PortMmcCommunicationError, +2,3533,3546,,PortMmcCommunicationNotAttained, +2,3534,,,PortMmcResponseIndexError, +2,3535,,,PortMmcResponseEndBitError, +2,3536,,,PortMmcResponseCrcError, +2,3537,,,PortMmcResponseTimeoutError, +2,3538,,,PortMmcDataEndBitError, +2,3539,,,PortMmcDataCrcError, +2,3540,,,PortMmcDataTimeoutError, +2,3541,,,PortMmcAutoCommandResponseIndexError, +2,3542,,,PortMmcAutoCommandResponseEndBitError, +2,3543,,,PortMmcAutoCommandResponseCrcError, +2,3544,,,PortMmcAutoCommandResponseTimeoutError, +2,3545,,,PortMmcCommandCompleteSoftwareTimeout, +2,3546,,,PortMmcTransferCompleteSoftwareTimeout, + +2,3548,3570,,PortMmcDeviceStatusHasError, +2,3549,,,PortMmcDeviceStatusAddressOutOfRange, +2,3550,,,PortMmcDeviceStatusAddressMisaligned, +2,3551,,,PortMmcDeviceStatusBlockLenError, +2,3552,,,PortMmcDeviceStatusEraseSeqError, +2,3553,,,PortMmcDeviceStatusEraseParam, +2,3554,,,PortMmcDeviceStatusWpViolation, +2,3555,,,PortMmcDeviceStatusLockUnlockFailed, +2,3556,,,PortMmcDeviceStatusComCrcError, +2,3557,,,PortMmcDeviceStatusIllegalCommand, +2,3558,,,PortMmcDeviceStatusDeviceEccFailed, +2,3559,,,PortMmcDeviceStatusCcError, +2,3560,,,PortMmcDeviceStatusError, +2,3561,,,PortMmcDeviceStatusCidCsdOverwrite, +2,3562,,,PortMmcDeviceStatusWpEraseSkip, +2,3563,,,PortMmcDeviceStatusEraseReset, +2,3564,,,PortMmcDeviceStatusSwitchError, + +2,3572,,,PortMmcUnexpectedDeviceState, +2,3573,,,PortMmcUnexpectedDeviceCsdValue, +2,3574,,,PortMmcAbortTransactionSoftwareTimeout, +2,3575,,,PortMmcCommandInhibitCmdSoftwareTimeout, +2,3576,,,PortMmcCommandInhibitDatSoftwareTimeout, +2,3577,,,PortMmcBusySoftwareTimeout, +2,3578,,,PortMmcIssueTuningCommandSoftwareTimeout, +2,3579,,,PortMmcTuningFailed, +2,3580,,,PortMmcMmcInitializationSoftwareTimeout, +2,3581,,,PortMmcMmcNotSupportExtendedCsd, +2,3582,,,PortMmcUnexpectedMmcExtendedCsdValue, +2,3583,,,PortMmcMmcEraseSoftwareTimeout, +2,3584,,,PortMmcSdCardValidationError, +2,3585,,,PortMmcSdCardInitializationSoftwareTimeout, +2,3586,,,PortMmcSdCardGetValidRcaSoftwareTimeout, +2,3587,,,PortMmcUnexpectedSdCardAcmdDisabled, +2,3588,,,PortMmcSdCardNotSupportSwitchFunctionStatus, +2,3589,,,PortMmcUnexpectedSdCardSwitchFunctionStatus, +2,3590,,,PortMmcSdCardNotSupportAccessMode, +2,3591,,,PortMmcSdCardNot4BitBusWidthAtUhsIMode, +2,3592,,,PortMmcSdCardNotSupportSdr104AndSdr50, +2,3593,,,PortMmcSdCardCannotSwitchAccessMode, +2,3594,,,PortMmcSdCardFailedSwitchAccessMode, +2,3595,,,PortMmcSdCardUnacceptableCurrentConsumption, +2,3596,,,PortMmcSdCardNotReadyToVoltageSwitch, +2,3597,,,PortMmcSdCardNotCompleteVoltageSwitch, + +2,3628,3658,,PortMmcHostControllerUnexpected, +2,3629,,,PortMmcInternalClockStableSoftwareTimeout, +2,3630,,,PortMmcSdHostStandardUnknownAutoCmdError, +2,3631,,,PortMmcSdHostStandardUnknownError, +2,3632,,,PortMmcSdmmcDllCalibrationSoftwareTimeout, +2,3633,,,PortMmcSdmmcDllApplicationSoftwareTimeout, +2,3634,,,PortMmcSdHostStandardFailSwitchTo18V, + +2,3660,3690,,PortMmcInternalError, +2,3661,,,PortMmcNoWaitedInterrupt, +2,3662,,,PortMmcWaitInterruptSoftwareTimeout, + +2,3692,,,PortMmcAbortCommandIssued, +2,3700,,,PortMmcNotSupported, +2,3701,,,PortMmcNotImplemented, + +2,4000,4999,,DataCorrupted, +2,4001,4299,,RomCorrupted, +2,4002,,,UnsupportedRomVersion, + +2,4011,4019,,AesCtrCounterExtendedStorageCorrupted, +2,4012,,,InvalidAesCtrCounterExtendedEntryOffset, +2,4013,,,InvalidAesCtrCounterExtendedTableSize, +2,4014,,,InvalidAesCtrCounterExtendedGeneration, +2,4015,,,InvalidAesCtrCounterExtendedOffset, + +2,4021,4029,,IndirectStorageCorrupted, +2,4022,,,InvalidIndirectEntryOffset, +2,4023,,,InvalidIndirectEntryStorageIndex, +2,4024,,,InvalidIndirectStorageSize, +2,4025,,,InvalidIndirectVirtualOffset, +2,4026,,,InvalidIndirectPhysicalOffset, +2,4027,,,InvalidIndirectStorageIndex, + +2,4031,4039,,BucketTreeCorrupted, +2,4032,,,InvalidBucketTreeSignature, +2,4033,,,InvalidBucketTreeEntryCount, +2,4034,,,InvalidBucketTreeNodeEntryCount, +2,4035,,,InvalidBucketTreeNodeOffset, +2,4036,,,InvalidBucketTreeEntryOffset, +2,4037,,,InvalidBucketTreeEntrySetOffset, +2,4038,,,InvalidBucketTreeNodeIndex, +2,4039,,,InvalidBucketTreeVirtualOffset, + +2,4041,4139,,RomNcaCorrupted, +2,4051,4069,,RomNcaFileSystemCorrupted, +2,4052,,,InvalidRomNcaFileSystemType, +2,4053,,,InvalidRomAcidFileSize, +2,4054,,,InvalidRomAcidSize, +2,4055,,,InvalidRomAcid, +2,4056,,,RomAcidVerificationFailed, +2,4057,,,InvalidRomNcaSignature, +2,4058,,,RomNcaHeaderSignature1VerificationFailed, +2,4059,,,RomNcaHeaderSignature2VerificationFailed, +2,4060,,,RomNcaFsHeaderHashVerificationFailed, +2,4061,,,InvalidRomNcaKeyIndex, +2,4062,,,InvalidRomNcaFsHeaderHashType, +2,4063,,,InvalidRomNcaFsHeaderEncryptionType, + +2,4071,4079,,RomNcaHierarchicalSha256StorageCorrupted, +2,4072,,,InvalidRomHierarchicalSha256BlockSize, +2,4073,,,InvalidRomHierarchicalSha256LayerCount, +2,4074,,,RomHierarchicalSha256BaseStorageTooLarge, +2,4075,,,RomHierarchicalSha256HashVerificationFailed, + +2,4141,4179,,RomIntegrityVerificationStorageCorrupted, +2,4142,,,IncorrectRomIntegrityVerificationMagic, +2,4143,,,InvalidRomZeroHash, +2,4144,,,RomNonRealDataVerificationFailed, +2,4145,,,InvalidRomHierarchicalIntegrityVerificationLayerCount, + +2,4151,4159,,RomRealDataVerificationFailed, +2,4152,,,ClearedRomRealDataVerificationFailed, +2,4153,,,UnclearedRomRealDataVerificationFailed, + +2,4181,4199,,RomPartitionFileSystemCorrupted, +2,4182,,,InvalidRomSha256PartitionHashTarget, +2,4183,,,RomSha256PartitionHashVerificationFailed, +2,4184,,,RomPartitionSignatureVerificationFailed, +2,4185,,,RomSha256PartitionSignatureVerificationFailed, +2,4186,,,InvalidRomPartitionEntryOffset, +2,4187,,,InvalidRomSha256PartitionMetaDataSize, + +2,4201,4219,,RomBuiltInStorageCorrupted, +2,4202,,,RomGptHeaderVerificationFailed, + +2,4241,4259,,RomHostFileSystemCorrupted, +2,4242,,,RomHostEntryCorrupted, +2,4243,,,RomHostFileDataCorrupted, +2,4244,,,RomHostFileCorrupted, +2,4245,,,InvalidRomHostHandle, + +2,4261,4279,,RomDatabaseCorrupted, +2,4262,,,InvalidRomAllocationTableBlock, +2,4263,,,InvalidRomKeyValueListElementIndex, + +2,4301,4499,,SaveDataCorrupted, +2,4302,,,UnsupportedSaveVersion, +2,4303,,,InvalidSaveDataEntryType, +2,4315,,,InvalidSaveDataHeader, +2,4362,,,InvalidSaveDataIvfcMagic, +2,4363,,,InvalidSaveDataIvfcHashValidationBit, +2,4364,,,InvalidSaveDataIvfcHash, +2,4372,,,EmptySaveDataIvfcHash, +2,4373,,,InvalidSaveDataHashInIvfcTopLayer, + +2,4402,,,SaveDataInvalidGptPartitionSignature, +2,4427,,,IncompleteBlockInZeroBitmapHashStorageFileSaveData, +2,4441,4459,,SaveDataHostFileSystemCorrupted, +2,4442,,,SaveDataHostEntryCorrupted, +2,4443,,,SaveDataHostFileDataCorrupted, +2,4444,,,SaveDataHostFileCorrupted, +2,4445,,,InvalidSaveDataHostHandle, + +2,4462,,,SaveDataAllocationTableCorrupted, +2,4463,,,SaveDataFileTableCorrupted, +2,4464,,,AllocationTableIteratedRangeEntry, + +2,4501,4599,,NcaCorrupted, +2,4508,,,NcaBaseStorageOutOfRangeA, +2,4509,,,NcaBaseStorageOutOfRangeB, + +2,4511,4529,,NcaFileSystemCorrupted, +2,4512,,,InvalidNcaFileSystemType, +2,4513,,,InvalidAcidFileSize, +2,4514,,,InvalidAcidSize, +2,4515,,,InvalidAcid, +2,4516,,,AcidVerificationFailed, +2,4517,,,InvalidNcaSignature, +2,4518,,,NcaHeaderSignature1VerificationFailed, +2,4519,,,NcaHeaderSignature2VerificationFailed, +2,4520,,,NcaFsHeaderHashVerificationFailed, +2,4521,,,InvalidNcaKeyIndex, +2,4522,,,InvalidNcaFsHeaderHashType, +2,4523,,,InvalidNcaFsHeaderEncryptionType, +2,4524,,,InvalidNcaPatchInfoIndirectSize, +2,4525,,,InvalidNcaPatchInfoAesCtrExSize, +2,4526,,,InvalidNcaPatchInfoAesCtrExOffset, +2,4527,,,InvalidNcaId, +2,4528,,,InvalidNcaHeader, +2,4529,,,InvalidNcaFsHeader, + +2,4531,4539,,NcaHierarchicalSha256StorageCorrupted, +2,4532,,,InvalidHierarchicalSha256BlockSize, +2,4533,,,InvalidHierarchicalSha256LayerCount, +2,4534,,,HierarchicalSha256BaseStorageTooLarge, +2,4535,,,HierarchicalSha256HashVerificationFailed, + +2,4543,,,InvalidNcaHeader1SignatureKeyGeneration, + +2,4601,4639,,IntegrityVerificationStorageCorrupted, +2,4602,,,IncorrectIntegrityVerificationMagic, +2,4603,,,InvalidZeroHash, +2,4604,,,NonRealDataVerificationFailed, +2,4605,,,InvalidHierarchicalIntegrityVerificationLayerCount, + +2,4611,4619,,RealDataVerificationFailed, +2,4612,,,ClearedRealDataVerificationFailed, +2,4613,,,UnclearedRealDataVerificationFailed, + +2,4641,4659,,PartitionFileSystemCorrupted, +2,4642,,,InvalidSha256PartitionHashTarget, +2,4643,,,Sha256PartitionHashVerificationFailed, +2,4644,,,PartitionSignatureVerificationFailed, +2,4645,,,Sha256PartitionSignatureVerificationFailed, +2,4646,,,InvalidPartitionEntryOffset, +2,4647,,,InvalidSha256PartitionMetaDataSize, + +2,4661,4679,,BuiltInStorageCorrupted, +2,4662,,,InvalidGptPartitionSignature, + +2,4681,4699,,FatFileSystemCorrupted, +2,4685,,,ExFatUnavailable, +2,4686,,,InvalidFatFormatForBisUser, +2,4687,,,InvalidFatFormatForBisSystem, +2,4688,,,InvalidFatFormatForBisSafe, +2,4689,,,InvalidFatFormatForBisCalibration, +2,4690,,,InvalidFatFormatForSdCard, + +2,4701,4719,,HostFileSystemCorrupted, +2,4702,,,HostEntryCorrupted, +2,4703,,,HostFileDataCorrupted, +2,4704,,,HostFileCorrupted, +2,4705,,,InvalidHostHandle, + +2,4721,4739,,DatabaseCorrupted, +2,4722,,,InvalidAllocationTableBlock, +2,4723,,,InvalidKeyValueListElementIndex, +2,4724,,,AllocationTableIteratedRangeEntryInternal, +2,4725,,,InvalidAllocationTableOffset, + +2,4741,4759,,AesXtsFileSystemCorrupted, +2,4742,,,AesXtsFileHeaderTooShort, +2,4743,,,AesXtsFileHeaderInvalidKeys, +2,4744,,,AesXtsFileHeaderInvalidMagic, +2,4745,,,AesXtsFileTooShort, +2,4746,,,AesXtsFileHeaderTooShortInSetSize, +2,4747,,,AesXtsFileHeaderInvalidKeysInRenameFile, +2,4748,,,AesXtsFileHeaderInvalidKeysInSetSize, + +2,4761,4769,,SaveDataTransferDataCorrupted, + +2,4771,4779,,SignedSystemPartitionDataCorrupted, +2,4781,,,GameCardLogoDataCorrupted, + +2,4790,4799,,MultiCommitContextCorrupted, +2,4791,,,InvalidMultiCommitContextVersion,The version of the multi-commit context file is too high for the current MultiCommitManager implementation. +2,4792,,,InvalidMultiCommitContextState,The multi-commit has not been provisionally committed. + +2,4811,4819,,ZeroBitmapFileCorrupted, +2,4812,,,IncompleteBlockInZeroBitmapHashStorageFile, + +2,5000,5999,,Unexpected, +2,5121,,,UnexpectedFatFileSystemSectorCount, +2,5307,,,UnexpectedErrorInHostFileFlush, +2,5308,,,UnexpectedErrorInHostFileGetSize, +2,5309,,,UnknownHostFileSystemError, +2,5320,,,InvalidNcaMountPoint, + +2,6000,6499,,PreconditionViolation, +2,6001,6199,,InvalidArgument, +2,6002,6029,,InvalidPath, +2,6003,,,TooLongPath, +2,6004,,,InvalidCharacter, +2,6005,,,InvalidPathFormat, +2,6006,,,DirectoryUnobtainable, +2,6007,,,NotNormalized, + +2,6030,6059,,InvalidPathForOperation, +2,6031,,,DirectoryNotDeletable, +2,6032,,,DirectoryNotRenamable, +2,6033,,,IncompatiblePath, +2,6034,,,RenameToOtherFileSystem, + +2,6061,,,InvalidOffset, +2,6062,,,InvalidSize, +2,6063,,,NullptrArgument, +2,6064,,,InvalidAlignment, +2,6065,,,InvalidMountName, +2,6066,,,ExtensionSizeTooLarge, +2,6067,,,ExtensionSizeInvalid, +2,6068,,,InvalidSaveDataInfoReader, +2,6069,,,InvalidCacheStorageSize, +2,6070,,,InvalidCacheStorageIndex, +2,6071,,,InvalidCommitNameCount,Up to 10 file systems can be committed at the same time. +2,6072,,,InvalidOpenMode, +2,6074,,,InvalidDirectoryOpenMode, + +2,6080,6099,,InvalidEnumValue, +2,6081,,,InvalidSaveDataState, +2,6082,,,InvalidSaveDataSpaceId, + +2,6200,6299,,InvalidOperationForOpenMode, +2,6201,,,FileExtensionWithoutOpenModeAllowAppend, +2,6202,,,ReadUnpermitted, +2,6203,,,WriteUnpermitted, + +2,6300,6399,,UnsupportedOperation, +2,6301,,,UnsupportedCommitTarget, +2,6302,,,UnsupportedSetSizeForNotResizableSubStorage,Attempted to resize a non-resizable SubStorage. +2,6303,,,UnsupportedSetSizeForResizableSubStorage,Attempted to resize a SubStorage that wasn't located at the end of the base storage. +2,6304,,,UnsupportedSetSizeForMemoryStorage, +2,6305,,,UnsupportedOperateRangeForMemoryStorage, +2,6306,,,UnsupportedOperateRangeForFileStorage, +2,6307,,,UnsupportedOperateRangeForFileHandleStorage, +2,6308,,,UnsupportedOperateRangeForSwitchStorage, +2,6309,,,UnsupportedOperateRangeForStorageServiceObjectAdapter, +2,6310,,,UnsupportedWriteForAesCtrCounterExtendedStorage, +2,6311,,,UnsupportedSetSizeForAesCtrCounterExtendedStorage, +2,6312,,,UnsupportedOperateRangeForAesCtrCounterExtendedStorage, +2,6313,,,UnsupportedWriteForAesCtrStorageExternal, +2,6314,,,UnsupportedSetSizeForAesCtrStorageExternal, +2,6315,,,UnsupportedSetSizeForAesCtrStorage, +2,6316,,,UnsupportedSetSizeForHierarchicalIntegrityVerificationStorage, +2,6317,,,UnsupportedOperateRangeForHierarchicalIntegrityVerificationStorage, +2,6318,,,UnsupportedSetSizeForIntegrityVerificationStorage, +2,6319,,,UnsupportedOperateRangeForNonSaveDataIntegrityVerificationStorage, +2,6320,,,UnsupportedOperateRangeForIntegrityVerificationStorage, +2,6321,,,UnsupportedSetSizeForBlockCacheBufferedStorage, +2,6322,,,UnsupportedOperateRangeForNonSaveDataBlockCacheBufferedStorage, +2,6323,,,UnsupportedOperateRangeForBlockCacheBufferedStorage, +2,6324,,,UnsupportedWriteForIndirectStorage, +2,6325,,,UnsupportedSetSizeForIndirectStorage, +2,6326,,,UnsupportedOperateRangeForIndirectStorage, +2,6327,,,UnsupportedWriteForZeroStorage, +2,6328,,,UnsupportedSetSizeForZeroStorage, +2,6329,,,UnsupportedSetSizeForHierarchicalSha256Storage, +2,6330,,,UnsupportedWriteForReadOnlyBlockCacheStorage, +2,6331,,,UnsupportedSetSizeForReadOnlyBlockCacheStorage, +2,6332,,,UnsupportedSetSizeForIntegrityRomFsStorage, +2,6333,,,UnsupportedSetSizeForDuplexStorage, +2,6334,,,UnsupportedOperateRangeForDuplexStorage, +2,6335,,,UnsupportedSetSizeForHierarchicalDuplexStorage, +2,6336,,,UnsupportedGetSizeForRemapStorage, +2,6337,,,UnsupportedSetSizeForRemapStorage, +2,6338,,,UnsupportedOperateRangeForRemapStorage, +2,6339,,,UnsupportedSetSizeForIntegritySaveDataStorage, +2,6340,,,UnsupportedOperateRangeForIntegritySaveDataStorage, +2,6341,,,UnsupportedSetSizeForJournalIntegritySaveDataStorage, +2,6342,,,UnsupportedOperateRangeForJournalIntegritySaveDataStorage, +2,6343,,,UnsupportedGetSizeForJournalStorage, +2,6344,,,UnsupportedSetSizeForJournalStorage, +2,6345,,,UnsupportedOperateRangeForJournalStorage, +2,6346,,,UnsupportedSetSizeForUnionStorage, +2,6347,,,UnsupportedSetSizeForAllocationTableStorage, +2,6348,,,UnsupportedReadForWriteOnlyGameCardStorage, +2,6349,,,UnsupportedSetSizeForWriteOnlyGameCardStorage, +2,6350,,,UnsupportedWriteForReadOnlyGameCardStorage, +2,6351,,,UnsupportedSetSizeForReadOnlyGameCardStorage, +2,6352,,,UnsupportedOperateRangeForReadOnlyGameCardStorage, +2,6353,,,UnsupportedSetSizeForSdmmcStorage, +2,6354,,,UnsupportedOperateRangeForSdmmcStorage, +2,6355,,,UnsupportedOperateRangeForFatFile, +2,6356,,,UnsupportedOperateRangeForStorageFile, +2,6357,,,UnsupportedSetSizeForInternalStorageConcatenationFile, +2,6358,,,UnsupportedOperateRangeForInternalStorageConcatenationFile, +2,6359,,,UnsupportedQueryEntryForConcatenationFileSystem, +2,6360,,,UnsupportedOperateRangeForConcatenationFile, +2,6361,,,UnsupportedSetSizeForZeroBitmapFile, +2,6362,,,UnsupportedOperateRangeForFileServiceObjectAdapter,Called OperateRange with an invalid operation ID. +2,6363,,,UnsupportedOperateRangeForAesXtsFile, +2,6364,,,UnsupportedWriteForRomFsFileSystem, +2,6365,,,UnsupportedCommitProvisionallyForRomFsFileSystem,Called RomFsFileSystem::CommitProvisionally. +2,6366,,,UnsupportedGetTotalSpaceSizeForRomFsFileSystem, +2,6367,,,UnsupportedWriteForRomFsFile, +2,6368,,,UnsupportedOperateRangeForRomFsFile, +2,6369,,,UnsupportedWriteForReadOnlyFileSystem, +2,6370,,,UnsupportedCommitProvisionallyForReadOnlyFileSystem, +2,6371,,,UnsupportedGetTotalSpaceSizeForReadOnlyFileSystem, +2,6372,,,UnsupportedWriteForReadOnlyFile, +2,6373,,,UnsupportedOperateRangeForReadOnlyFile, +2,6374,,,UnsupportedWriteForPartitionFileSystem, +2,6375,,,UnsupportedCommitProvisionallyForPartitionFileSystem,Called PartitionFileSystemCore::CommitProvisionally. +2,6376,,,UnsupportedWriteForPartitionFile, +2,6377,,,UnsupportedOperateRangeForPartitionFile, +2,6378,,,UnsupportedOperateRangeForTmFileSystemFile, +2,6379,,,UnsupportedWriteForSaveDataInternalStorageFileSystem, +2,6382,,,UnsupportedCommitProvisionallyForApplicationTemporaryFileSystem, +2,6383,,,UnsupportedCommitProvisionallyForSaveDataFileSystem, +2,6384,,,UnsupportedCommitProvisionallyForDirectorySaveDataFileSystem,Called DirectorySaveDataFileSystem::CommitProvisionally on a non-user savedata. +2,6385,,,UnsupportedWriteForZeroBitmapHashStorageFile, +2,6386,,,UnsupportedSetSizeForZeroBitmapHashStorageFile, + +2,6400,6449,,PermissionDenied, + +2,6452,,,ExternalKeyAlreadyRegistered, +2,6454,,,NeedFlush, +2,6455,,,FileNotClosed, +2,6456,,,DirectoryNotClosed, +2,6457,,,WriteModeFileNotClosed, +2,6458,,,AllocatorAlreadyRegistered, +2,6459,,,DefaultAllocatorUsed, +2,6461,,,AllocatorAlignmentViolation, +2,6463,,,MultiCommitFileSystemAlreadyAdded,The provided file system has already been added to the multi-commit manager. +2,6465,,,UserNotExist, +2,6466,,,DefaultGlobalFileDataCacheEnabled, +2,6467,,,SaveDataRootPathUnavailable, + +2,6600,6699,,NotFound, +2,6605,,,TargetProgramNotFound,Specified program is not found in the program registry. +2,6606,,,TargetProgramIndexNotFound,Specified program index is not found + +2,6700,6799,,OutOfResource, +2,6705,,,BufferAllocationFailed, +2,6706,,,MappingTableFull, +2,6707,,,AllocationTableInsufficientFreeBlocks, +2,6709,,,OpenCountLimit, +2,6710,,,MultiCommitFileSystemLimit,The maximum number of file systems have been added to the multi-commit manager. + +2,6800,6899,,MappingFailed, +2,6811,,,MapFull, + +2,6900,6999,,BadState, +2,6902,,,NotInitialized, +2,6905,,,NotMounted, +2,6906,,,SaveDataIsExtending, + +2,7031,,,SaveDataPorterInvalidated, + +2,7901,7904,,DbmNotFound, +2,7902,,,DbmKeyNotFound, +2,7903,,,DbmFileNotFound, +2,7904,,,DbmDirectoryNotFound, + +2,7906,,,DbmAlreadyExists, +2,7907,,,DbmKeyFull, +2,7908,,,DbmDirectoryEntryFull, +2,7909,,,DbmFileEntryFull, + +2,7910,7912,,DbmFindFinished, +2,7911,,,DbmFindKeyFinished, +2,7912,,,DbmIterationFinished, + +2,7914,,,DbmInvalidOperation, +2,7915,,,DbmInvalidPathFormat, +2,7916,,,DbmDirectoryNameTooLong, +2,7917,,,DbmFileNameTooLong, + +3,4,,,Busy, +3,8,,,OutOfMemory, +3,9,,,OutOfResource, +3,12,,,OutOfVirtualAddressSpace, +3,13,,,ResourceLimit, + +3,500,,,OutOfHandles, +3,501,,,InvalidHandle, +3,502,,,InvalidCurrentMemoryState, +3,503,,,InvalidTransferMemoryState, +3,504,,,InvalidTransferMemorySize, +3,505,,,OutOfTransferMemory, +3,506,,,OutOfAddressSpace, + +5,1,,,InvalidContentStorageBase, +5,2,,,PlaceHolderAlreadyExists, +5,3,,,PlaceHolderNotFound, +5,4,,,ContentAlreadyExists, +5,5,,,ContentNotFound, +5,7,,,ContentMetaNotFound, +5,8,,,AllocationFailed, +5,12,,,UnknownStorage, + +5,100,,,InvalidContentStorage, +5,110,,,InvalidContentMetaDatabase, +5,130,,,InvalidPackageFormat, +5,140,,,InvalidContentHash, + +5,160,,,InvalidInstallTaskState, +5,170,,,InvalidPlaceHolderFile, +5,180,,,BufferInsufficient, +5,190,,,WriteToReadOnlyContentStorage, +5,200,,,NotEnoughInstallSpace, +5,210,,,SystemUpdateNotFoundInPackage, +5,220,,,ContentInfoNotFound, +5,237,,,DeltaNotFound, +5,240,,,InvalidContentMetaKey, +5,280,,,IgnorableInstallTicketFailure, + +5,310,,,ContentStorageBaseNotFound, +5,330,,,ListPartiallyNotCommitted, +5,360,,,UnexpectedContentMetaPrepared, +5,380,,,InvalidFirmwareVariation, + +5,250,258,,ContentStorageNotActive, +5,251,,,GameCardContentStorageNotActive, +5,252,,,BuiltInSystemContentStorageNotActive, +5,253,,,BuiltInUserContentStorageNotActive, +5,254,,,SdCardContentStorageNotActive, +5,258,,,UnknownContentStorageNotActive, + +5,260,268,,ContentMetaDatabaseNotActive, +5,261,,,GameCardContentMetaDatabaseNotActive, +5,262,,,BuiltInSystemContentMetaDatabaseNotActive, +5,263,,,BuiltInUserContentMetaDatabaseNotActive, +5,264,,,SdCardContentMetaDatabaseNotActive, +5,268,,,UnknownContentMetaDatabaseNotActive, + +5,290,299,,InstallTaskCancelled, +5,291,,,CreatePlaceHolderCancelled, +5,292,,,WritePlaceHolderCancelled, + +5,8181,8191,,InvalidArgument, +5,8182,,,InvalidOffset, + +6,1,,,EndOfQuery, +6,2,,,InvalidCurrentMemory, +6,3,,,NotSingleRegion, +6,4,,,InvalidMemoryState, +6,5,,,OutOfMemory, +6,6,,,OutOfResource, +6,7,,,NotSupported, +6,8,,,InvalidHandle, +6,1023,,,InternalError, + +8,2,,,ProgramNotFound, +8,3,,,DataNotFound, +8,4,,,UnknownStorageId, +8,5,,,LocationResolverNotFound, +8,6,,,HtmlDocumentNotFound, +8,7,,,AddOnContentNotFound, +8,8,,,ControlNotFound, +8,9,,,LegalInformationNotFound, +8,10,,,DebugProgramNotFound, +8,90,,,TooManyRegisteredPaths, + +9,1,,,TooLongArgument, +9,2,,,TooManyArguments, +9,3,,,TooLargeMeta, +9,4,,,InvalidMeta, +9,5,,,InvalidNso, +9,6,,,InvalidPath, +9,7,,,TooManyProcesses, +9,8,,,NotPinned, +9,9,,,InvalidProgramId, +9,10,,,InvalidVersion, +9,11,,,InvalidAcidSignature, +9,12,,,InvalidNcaSignature, + +9,51,,,InsufficientAddressSpace, +9,52,,,InvalidNro, +9,53,,,InvalidNrr, +9,54,,,InvalidSignature, +9,55,,,InsufficientNroRegistrations, +9,56,,,InsufficientNrrRegistrations, +9,57,,,NroAlreadyLoaded, + +9,81,,,InvalidAddress, +9,82,,,InvalidSize, +9,84,,,NotLoaded, +9,85,,,NotRegistered, +9,86,,,InvalidSession, +9,87,,,InvalidProcess, + +9,100,,,UnknownCapability, +9,103,,,InvalidCapabilityKernelFlags, +9,104,,,InvalidCapabilitySyscallMask, +9,106,,,InvalidCapabilityMapRange, +9,107,,,InvalidCapabilityMapPage, +9,111,,,InvalidCapabilityInterruptPair, +9,113,,,InvalidCapabilityApplicationType, +9,114,,,InvalidCapabilityKernelVersion, +9,115,,,InvalidCapabilityHandleTable, +9,116,,,InvalidCapabilityDebugFlags, + +9,200,,,InternalError, + +10,1,,,NotSupported, +10,3,,,PreconditionViolation, # These should be in the sf::cmif namespace -10,202,,InvalidHeaderSize, -10,211,,InvalidInHeader, -10,221,,UnknownCommandId, -10,232,,InvalidOutRawSize, -10,235,,InvalidNumInObjects, -10,236,,InvalidNumOutObjects, -10,239,,InvalidInObject, -10,261,,TargetNotFound, -10,301,,OutOfDomainEntries, +10,202,,,InvalidHeaderSize, +10,211,,,InvalidInHeader, +10,221,,,UnknownCommandId, +10,232,,,InvalidOutRawSize, +10,235,,,InvalidNumInObjects, +10,236,,,InvalidNumOutObjects, +10,239,,,InvalidInObject, +10,261,,,TargetNotFound, +10,301,,,OutOfDomainEntries, # These should be in the sf::impl namespace -10,800,899,RequestContextChanged, -10,801,809,RequestInvalidated, -10,802,,RequestInvalidatedByUser, - -10,811,819,RequestDeferred, -10,812,,RequestDeferredByUser, - -11,100,299,OutOfResource, -11,102,,OutOfSessionMemory, -11,131,139,OutOfSessions, -11,141,,PointerBufferTooSmall, - -11,200,,OutOfDomains, -11,301,,SessionClosed, -11,402,,InvalidRequestSize, -11,403,,UnknownCommandType, -11,420,,InvalidCmifRequest, -11,491,,TargetNotDomain, -11,492,,DomainObjectNotFound, - -13,1,,Unknown, -13,2,,DebuggingDisabled, - -15,1,,ProcessNotFound, -15,2,,AlreadyStarted, -15,3,,NotTerminated, -15,4,,DebugHookInUse, -15,5,,ApplicationRunning, -15,6,,InvalidSize, - -16,90,,Canceled, -16,110,,OutOfMaxRunningTask, -16,270,,CardUpdateNotSetup, -16,280,,CardUpdateNotPrepared, -16,290,,CardUpdateAlreadySetup, -16,460,,PrepareCardUpdateAlreadyRequested, - -20,1,,OutOfKeyResource,There is no more space in the database or the key is too long. -20,2,,KeyNotFound, -20,4,,AllocationFailed, -20,5,,InvalidKeyValue, -20,6,,BufferInsufficient, -20,8,,InvalidFileSystemState, -20,9,,NotCreated, - -21,1,,OutOfProcesses, -21,2,,InvalidClient, -21,3,,OutOfSessions, -21,4,,AlreadyRegistered, -21,5,,OutOfServices, -21,6,,InvalidServiceName, -21,7,,NotRegistered, -21,8,,NotAllowed, -21,9,,TooLargeAccessControl, - -22,1,1023,RoError, -22,2,,OutOfAddressSpace, -22,3,,AlreadyLoaded, -22,4,,InvalidNro, -22,6,,InvalidNrr, -22,7,,TooManyNro, -22,8,,TooManyNrr, -22,9,,NotAuthorized, -22,10,,InvalidNrrKind, -22,1023,,InternalError, - -22,1025,,InvalidAddress, -22,1026,,InvalidSize, -22,1028,,NotLoaded, -22,1029,,NotRegistered, -22,1030,,InvalidSession, -22,1031,,InvalidProcess, - -24,1,,NoDevice, -24,2,,NotActivated, -24,3,,DeviceRemoved, -24,4,,NotAwakened, - -24,32,126,CommunicationError, -24,33,46,CommunicationNotAttained, -24,34,,ResponseIndexError, -24,35,,ResponseEndBitError, -24,36,,ResponseCrcError, -24,37,,ResponseTimeoutError, -24,38,,DataEndBitError, -24,39,,DataCrcError, -24,40,,DataTimeoutError, -24,41,,AutoCommandResponseIndexError, -24,42,,AutoCommandResponseEndBitError, -24,43,,AutoCommandResponseCrcError, -24,44,,AutoCommandResponseTimeoutError, -24,45,,CommandCompleteSoftwareTimeout, -24,46,,TransferCompleteSoftwareTimeout, - -24,48,70,DeviceStatusHasError, -24,49,,DeviceStatusAddressOutOfRange, -24,50,,DeviceStatusAddressMisaligned, -24,51,,DeviceStatusBlockLenError, -24,52,,DeviceStatusEraseSeqError, -24,53,,DeviceStatusEraseParam, -24,54,,DeviceStatusWpViolation, -24,55,,DeviceStatusLockUnlockFailed, -24,56,,DeviceStatusComCrcError, -24,57,,DeviceStatusIllegalCommand, -24,58,,DeviceStatusDeviceEccFailed, -24,59,,DeviceStatusCcError, -24,60,,DeviceStatusError, -24,61,,DeviceStatusCidCsdOverwrite, -24,62,,DeviceStatusWpEraseSkip, -24,63,,DeviceStatusEraseReset, -24,64,,DeviceStatusSwitchError, - -24,72,,UnexpectedDeviceState, -24,73,,UnexpectedDeviceCsdValue, -24,74,,AbortTransactionSoftwareTimeout, -24,75,,CommandInhibitCmdSoftwareTimeout, -24,76,,CommandInhibitDatSoftwareTimeout, -24,77,,BusySoftwareTimeout, -24,78,,IssueTuningCommandSoftwareTimeout, -24,79,,TuningFailed, -24,80,,MmcInitializationSoftwareTimeout, -24,81,,MmcNotSupportExtendedCsd, -24,82,,UnexpectedMmcExtendedCsdValue, -24,83,,MmcEraseSoftwareTimeout, -24,84,,SdCardValidationError, -24,85,,SdCardInitializationSoftwareTimeout, -24,86,,SdCardGetValidRcaSoftwareTimeout, -24,87,,UnexpectedSdCardAcmdDisabled, -24,88,,SdCardNotSupportSwitchFunctionStatus, -24,89,,UnexpectedSdCardSwitchFunctionStatus, -24,90,,SdCardNotSupportAccessMode, -24,91,,SdCardNot4BitBusWidthAtUhsIMode, -24,92,,SdCardNotSupportSdr104AndSdr50, -24,93,,SdCardCannotSwitchAccessMode, -24,94,,SdCardFailedSwitchAccessMode, -24,95,,SdCardUnacceptableCurrentConsumption, -24,96,,SdCardNotReadyToVoltageSwitch, -24,97,,SdCardNotCompleteVoltageSwitch, - -24,128,158,HostControllerUnexpected, -24,129,,InternalClockStableSoftwareTimeout, -24,130,,SdHostStandardUnknownAutoCmdError, -24,131,,SdHostStandardUnknownError, -24,132,,SdmmcDllCalibrationSoftwareTimeout, -24,133,,SdmmcDllApplicationSoftwareTimeout, -24,134,,SdHostStandardFailSwitchTo18V, -24,135,,DriveStrengthCalibrationNotCompleted, -24,136,,DriveStrengthCalibrationSoftwareTimeout, -24,137,,SdmmcCompShortToGnd, -24,138,,SdmmcCompOpen, - -24,160,190,InternalError, -24,161,,NoWaitedInterrupt, -24,162,,WaitInterruptSoftwareTimeout, - -24,192,,AbortCommandIssued, -24,200,,NotSupported, -24,201,,NotImplemented, - -26,0,99,SecureMonitorError, -26,1,,SecureMonitorNotImplemented, -26,2,,SecureMonitorInvalidArgument, -26,3,,SecureMonitorBusy, -26,4,,SecureMonitorNoAsyncOperation, -26,5,,SecureMonitorInvalidAsyncOperation, -26,6,,SecureMonitorNotPermitted, -26,7,,SecureMonitorNotInitialized, - -26,100,,InvalidSize, -26,101,,UnknownSecureMonitorError, -26,102,,DecryptionFailed, - -26,104,,OutOfKeySlots, -26,105,,InvalidKeySlot, -26,106,,BootReasonAlreadySet, -26,107,,BootReasonNotSet, -26,108,,InvalidArgument, - -30,1,,OutOfResource, -30,2,,NotSupported, -30,3,,InvalidArgument, -30,4,,PermissionDenied, -30,5,,AccessModeDenied, -30,6,,DeviceCodeNotFound, - -101,1,,NoAck, -101,2,,BusBusy, -101,3,,CommandListFull, -101,5,,UnknownDevice, -101,253,,Timeout, - -102,1,,AlreadyBound, -102,2,,AlreadyOpen, -102,3,,DeviceNotFound, -102,4,,InvalidArgument, -102,6,,NotOpen, - -105,11,,SettingsItemNotFound, - -105,100,149,InternalError, -105,101,,SettingsItemKeyAllocationFailed, -105,102,,SettingsItemValueAllocationFailed, - -105,200,399,InvalidArgument, -105,201,,SettingsNameNull, -105,202,,SettingsItemKeyNull, -105,203,,SettingsItemValueNull, -105,204,,SettingsItemKeyBufferNull, -105,205,,SettingsItemValueBufferNull, - -105,221,,SettingsNameEmpty, -105,222,,SettingsItemKeyEmpty, - -105,241,,SettingsNameTooLong, -105,242,,SettingsItemKeyTooLong, - -105,261,,SettingsNameInvalidFormat, -105,262,,SettingsItemKeyInvalidFormat, -105,263,,SettingsItemValueInvalidFormat, - -114,1,,OperationFailed, -114,6,,NotSupported, -114,7,,NotFound, - -116,0,,NotInitialized, -116,1,,NoCapability, - -116,102,,OffsetInvalid, -116,103,,UninitializedClock, - -116,200,,NotComparable, -116,201,,Overflowed, - -116,801,,OutOfMemory, - -116,900,919,InvalidArgument, -116,901,,InvalidPointer, -116,902,,OutOfRange, -116,903,,InvalidTimeZoneBinary, -116,989,,NotFound, -116,990,,NotImplemented, - -122,1,,InvalidArgument, -122,2,,NotFound, -122,3,,TargetLocked, -122,4,,TargetAlreadyMounted, -122,5,,TargetNotMounted, -122,6,,AlreadyOpen, -122,7,,NotOpen, -122,8,,InternetRequestDenied, -122,9,,ServiceOpenLimitReached, -122,10,,SaveDataNotFound, - -122,31,,NetworkServiceAccountNotAvailable, - -122,80,,PassphrasePathNotFound, -122,81,,DataVerificationFailed, - -122,90,,PermissionDenied, -122,91,,AllocationFailed, - -122,98,,InvalidOperation, - -122,204,,InvalidDeliveryCacheStorageFile, -122,205,,StorageOpenLimitReached, - -123,0,4999,SslService, - -124,0,,Cancelled, -124,1,,CancelledByUser, -124,100,,UserNotExist, -124,200,269,NetworkServiceAccountUnavailable, -124,430,499,TokenCacheUnavailable, -124,3000,8191,NetworkCommunicationError, - -133,16,,IllegalRequest, - -137,70,,HttpConnectionCanceled, - -138,2,,AlreadyInitialized, -138,3,,NotInitialized, - -147,1,,NotInitialized, -147,2,,AlreadyInitialized, -147,3,,OutOfArraySpace, -147,4,,OutOfFieldSpace, -147,5,,OutOfMemory, -147,7,,InvalidArgument, -147,8,,NotFound, -147,9,,FieldCategoryMismatch, -147,10,,FieldTypeMismatch, -147,11,,AlreadyExists, -147,12,,CorruptJournal, -147,13,,CategoryNotFound, -147,14,,RequiredContextMissing, -147,15,,RequiredFieldMissing, -147,16,,FormatterError, -147,17,,InvalidPowerState, -147,18,,ArrayFieldTooLarge, -147,19,,AlreadyOwned, - -158,2,,BootImagePackageNotFound, -158,3,,InvalidBootImagePackage, -158,4,,TooSmallWorkBuffer, -158,5,,NotAlignedWorkBuffer, -158,6,,NeedsRepairBootImages, - -162,1,,ApplicationAborted, -162,2,,SystemModuleAborted, - -163,1,,AllocationFailed, -163,2,,NullGraphicsBuffer, -163,3,,AlreadyThrown, -163,4,,TooManyEvents, -163,5,,InRepairWithoutVolHeld, -163,6,,InRepairWithoutTimeReviserCartridge, - -168,0,,UndefinedInstruction, -168,1,,InstructionAbort, -168,2,,DataAbort, -168,3,,AlignmentFault, -168,4,,DebuggerAttached, -168,5,,BreakPoint, -168,6,,UserBreak, -168,7,,DebuggerBreak, -168,8,,UndefinedSystemCall, -168,9,,MemorySystemError, -168,99,,IncompleteReport, - -183,1,,CannotDebug, -183,2,,AlreadyAttached, -183,3,,Cancelled, - -189,2,,InvalidArgument, - -198,1,,NotSupported, -198,2,,InvalidArgument, -198,3,,NotAvailable, -198,101,,CalibrationDataCrcError, - -202,140,149,Invalid, -202,601,,DualConnected, -202,602,,SameJoyTypeConnected, -202,603,,ColorNotAvailable, -202,604,,ControllerNotConnected, -202,3101,,Canceled, -202,3102,,NotSupportedNpadStyle, -202,3200,3209,ControllerFirmwareUpdateError, -202,3201,,ControllerFirmwareUpdateFailed, - -205,110,119,IrsensorUnavailable, -205,110,,IrsensorUnconnected, -205,111,,IrsensorUnsupported, -205,120,,IrsensorNotReady, -205,122,139,IrsensorDeviceError, - -206,2,99,AlbumError, -206,3,,AlbumWorkMemoryError, -206,7,,AlbumAlreadyOpened, -206,8,,AlbumOutOfRange, - -206,10,19,AlbumInvalidFileId, -206,11,,AlbumInvalidApplicationId, -206,12,,AlbumInvalidTimestamp, -206,13,,AlbumInvalidStorage, -206,14,,AlbumInvalidFileContents, - -206,21,,AlbumIsNotMounted, -206,22,,AlbumIsFull, -206,23,,AlbumFileNotFound, -206,24,,AlbumInvalidFileData, -206,25,,AlbumFileCountLimit, -206,26,,AlbumFileNoThumbnail, -206,30,,AlbumReadBufferShortage, - -206,90,99,AlbumFileSystemError, -206,94,96,AlbumAccessCorrupted, -206,96,,AlbumDestinationAccessCorrupted, - -206,800,899,ControlError, -206,820,,ControlResourceLimit, -206,822,,ControlNotOpened, - -206,1023,,NotSupported, - -206,1024,2047,InternalError, -206,1210,,InternalJpegEncoderError, -206,1212,,InternalJpegWorkMemoryShortage, - -206,1300,1399,InternalFileDataVerificationError, -206,1301,,InternalFileDataVerificationEmptyFileData, -206,1302,,InternalFileDataVerificationExifExtractionFailed, -206,1303,,InternalFileDataVerificationExifAnalyzationFailed, -206,1304,,InternalFileDataVerificationDateTimeExtractionFailed, -206,1305,,InternalFileDataVerificationInvalidDateTimeLength, -206,1306,,InternalFileDataVerificationInconsistentDateTime, -206,1307,,InternalFileDataVerificationMakerNoteExtractionFailed, -206,1308,,InternalFileDataVerificationInconsistentApplicationId, -206,1309,,InternalFileDataVerificationInconsistentSignature, -206,1310,,InternalFileDataVerificationUnsupportedOrientation, -206,1311,,InternalFileDataVerificationInvalidDataDimension, -206,1312,,InternalFileDataVerificationInconsistentOrientation, - -206,1400,1499,InternalAlbumLimitationError, -206,1401,,InternalAlbumLimitationFileCountLimit, - -206,1500,1599,InternalSignatureError, -206,1501,,InternalSignatureExifExtractionFailed, -206,1502,,InternalSignatureMakerNoteExtractionFailed, - -206,1700,1799,InternalAlbumSessionError, -206,1701,,InternalAlbumLimitationSessionCountLimit, - -206,1900,1999,InternalAlbumTemporaryFileError, -206,1901,,InternalAlbumTemporaryFileCountLimit, -206,1902,,InternalAlbumTemporaryFileCreateError, -206,1903,,InternalAlbumTemporaryFileCreateRetryCountLimit, -206,1904,,InternalAlbumTemporaryFileOpenError, -206,1905,,InternalAlbumTemporaryFileGetFileSizeError, -206,1906,,InternalAlbumTemporaryFileSetFileSizeError, -206,1907,,InternalAlbumTemporaryFileReadFileError, -206,1908,,InternalAlbumTemporaryFileWriteFileError, - -228,1,,NotImplemented, -228,2,,NotAvailable, -228,3,,ApplicationNotRunning, -228,4,,BufferNotEnough, -228,5,,ApplicationContentNotFound, -228,6,,ContentMetaNotFound, - -428,1,49,InvalidArgument, -428,2,,NullArgument, -428,3,,ArgumentOutOfRange, -428,4,,BufferTooSmall, - -428,51,,ServiceNotInitialized, - -428,101,,NotImplemented, - -428,1000,1999,InvalidData, -428,1001,1019,InvalidInitialProcessData, -428,1002,1009,InvalidKip, -428,1003,,InvalidKipFileSize,The size of the KIP file was smaller than expected. -428,1004,,InvalidKipMagic,The magic value of the KIP file was not KIP1. -428,1005,,InvalidKipSegmentSize,The size of the compressed KIP segment was smaller than expected. -428,1006,,KipSegmentDecompressionFailed,An error occurred while decompressing a KIP segment. - -428,1010,1019,InvalidIni, -428,1011,,InvalidIniFileSize,The size of the INI file was smaller than expected. -428,1012,,InvalidIniMagic,The magic value of the INI file was not INI1. -428,1013,,InvalidIniProcessCount,The INI had an invalid process count. - -428,1020,1039,InvalidPackage2, -428,1021,,InvalidPackage2HeaderSignature, -428,1022,,InvalidPackage2MetaSizeA, -428,1023,,InvalidPackage2MetaSizeB, -428,1024,,InvalidPackage2MetaKeyGeneration, -428,1025,,InvalidPackage2MetaMagic, -428,1026,,InvalidPackage2MetaEntryPointAlignment, -428,1027,,InvalidPackage2MetaPayloadAlignment, -428,1028,,InvalidPackage2MetaPayloadSizeAlignment, -428,1029,,InvalidPackage2MetaTotalSize, -428,1030,,InvalidPackage2MetaPayloadSize, -428,1031,,InvalidPackage2MetaPayloadsOverlap, -428,1032,,InvalidPackage2MetaEntryPointNotFound, -428,1033,,InvalidPackage2PayloadCorrupted, - -428,1040,1059,InvalidPackage1, -428,1041,,InvalidPackage1SectionSize, -428,1042,,InvalidPackage1MarikoBodySize, -428,1043,,InvalidPackage1Pk11Size, +10,800,899,,RequestContextChanged, +10,801,809,,RequestInvalidated, +10,802,,,RequestInvalidatedByUser, + +10,811,819,,RequestDeferred, +10,812,,,RequestDeferredByUser, + +11,100,299,,OutOfResource, +11,102,,,OutOfSessionMemory, +11,131,139,,OutOfSessions, +11,141,,,PointerBufferTooSmall, + +11,200,,,OutOfDomains, +11,301,,,SessionClosed, +11,402,,,InvalidRequestSize, +11,403,,,UnknownCommandType, +11,420,,,InvalidCmifRequest, +11,491,,,TargetNotDomain, +11,492,,,DomainObjectNotFound, + +13,1,,,Unknown, +13,2,,,DebuggingDisabled, + +15,1,,,ProcessNotFound, +15,2,,,AlreadyStarted, +15,3,,,NotTerminated, +15,4,,,DebugHookInUse, +15,5,,,ApplicationRunning, +15,6,,,InvalidSize, + +16,90,,,Canceled, +16,110,,,OutOfMaxRunningTask, +16,270,,,CardUpdateNotSetup, +16,280,,,CardUpdateNotPrepared, +16,290,,,CardUpdateAlreadySetup, +16,460,,,PrepareCardUpdateAlreadyRequested, + +20,1,,,OutOfKeyResource,There is no more space in the database or the key is too long. +20,2,,,KeyNotFound, +20,4,,,AllocationFailed, +20,5,,,InvalidKeyValue, +20,6,,,BufferInsufficient, +20,8,,,InvalidFileSystemState, +20,9,,,NotCreated, + +21,1,,,OutOfProcesses, +21,2,,,InvalidClient, +21,3,,,OutOfSessions, +21,4,,,AlreadyRegistered, +21,5,,,OutOfServices, +21,6,,,InvalidServiceName, +21,7,,,NotRegistered, +21,8,,,NotAllowed, +21,9,,,TooLargeAccessControl, + +22,1,1023,,RoError, +22,2,,,OutOfAddressSpace, +22,3,,,AlreadyLoaded, +22,4,,,InvalidNro, +22,6,,,InvalidNrr, +22,7,,,TooManyNro, +22,8,,,TooManyNrr, +22,9,,,NotAuthorized, +22,10,,,InvalidNrrKind, +22,1023,,,InternalError, + +22,1025,,,InvalidAddress, +22,1026,,,InvalidSize, +22,1028,,,NotLoaded, +22,1029,,,NotRegistered, +22,1030,,,InvalidSession, +22,1031,,,InvalidProcess, + +24,1,,,NoDevice, +24,2,,,NotActivated, +24,3,,,DeviceRemoved, +24,4,,,NotAwakened, + +24,32,126,,CommunicationError, +24,33,46,,CommunicationNotAttained, +24,34,,,ResponseIndexError, +24,35,,,ResponseEndBitError, +24,36,,,ResponseCrcError, +24,37,,,ResponseTimeoutError, +24,38,,,DataEndBitError, +24,39,,,DataCrcError, +24,40,,,DataTimeoutError, +24,41,,,AutoCommandResponseIndexError, +24,42,,,AutoCommandResponseEndBitError, +24,43,,,AutoCommandResponseCrcError, +24,44,,,AutoCommandResponseTimeoutError, +24,45,,,CommandCompleteSoftwareTimeout, +24,46,,,TransferCompleteSoftwareTimeout, + +24,48,70,,DeviceStatusHasError, +24,49,,,DeviceStatusAddressOutOfRange, +24,50,,,DeviceStatusAddressMisaligned, +24,51,,,DeviceStatusBlockLenError, +24,52,,,DeviceStatusEraseSeqError, +24,53,,,DeviceStatusEraseParam, +24,54,,,DeviceStatusWpViolation, +24,55,,,DeviceStatusLockUnlockFailed, +24,56,,,DeviceStatusComCrcError, +24,57,,,DeviceStatusIllegalCommand, +24,58,,,DeviceStatusDeviceEccFailed, +24,59,,,DeviceStatusCcError, +24,60,,,DeviceStatusError, +24,61,,,DeviceStatusCidCsdOverwrite, +24,62,,,DeviceStatusWpEraseSkip, +24,63,,,DeviceStatusEraseReset, +24,64,,,DeviceStatusSwitchError, + +24,72,,,UnexpectedDeviceState, +24,73,,,UnexpectedDeviceCsdValue, +24,74,,,AbortTransactionSoftwareTimeout, +24,75,,,CommandInhibitCmdSoftwareTimeout, +24,76,,,CommandInhibitDatSoftwareTimeout, +24,77,,,BusySoftwareTimeout, +24,78,,,IssueTuningCommandSoftwareTimeout, +24,79,,,TuningFailed, +24,80,,,MmcInitializationSoftwareTimeout, +24,81,,,MmcNotSupportExtendedCsd, +24,82,,,UnexpectedMmcExtendedCsdValue, +24,83,,,MmcEraseSoftwareTimeout, +24,84,,,SdCardValidationError, +24,85,,,SdCardInitializationSoftwareTimeout, +24,86,,,SdCardGetValidRcaSoftwareTimeout, +24,87,,,UnexpectedSdCardAcmdDisabled, +24,88,,,SdCardNotSupportSwitchFunctionStatus, +24,89,,,UnexpectedSdCardSwitchFunctionStatus, +24,90,,,SdCardNotSupportAccessMode, +24,91,,,SdCardNot4BitBusWidthAtUhsIMode, +24,92,,,SdCardNotSupportSdr104AndSdr50, +24,93,,,SdCardCannotSwitchAccessMode, +24,94,,,SdCardFailedSwitchAccessMode, +24,95,,,SdCardUnacceptableCurrentConsumption, +24,96,,,SdCardNotReadyToVoltageSwitch, +24,97,,,SdCardNotCompleteVoltageSwitch, + +24,128,158,,HostControllerUnexpected, +24,129,,,InternalClockStableSoftwareTimeout, +24,130,,,SdHostStandardUnknownAutoCmdError, +24,131,,,SdHostStandardUnknownError, +24,132,,,SdmmcDllCalibrationSoftwareTimeout, +24,133,,,SdmmcDllApplicationSoftwareTimeout, +24,134,,,SdHostStandardFailSwitchTo18V, +24,135,,,DriveStrengthCalibrationNotCompleted, +24,136,,,DriveStrengthCalibrationSoftwareTimeout, +24,137,,,SdmmcCompShortToGnd, +24,138,,,SdmmcCompOpen, + +24,160,190,,InternalError, +24,161,,,NoWaitedInterrupt, +24,162,,,WaitInterruptSoftwareTimeout, + +24,192,,,AbortCommandIssued, +24,200,,,NotSupported, +24,201,,,NotImplemented, + +26,0,99,,SecureMonitorError, +26,1,,,SecureMonitorNotImplemented, +26,2,,,SecureMonitorInvalidArgument, +26,3,,,SecureMonitorBusy, +26,4,,,SecureMonitorNoAsyncOperation, +26,5,,,SecureMonitorInvalidAsyncOperation, +26,6,,,SecureMonitorNotPermitted, +26,7,,,SecureMonitorNotInitialized, + +26,100,,,InvalidSize, +26,101,,,UnknownSecureMonitorError, +26,102,,,DecryptionFailed, + +26,104,,,OutOfKeySlots, +26,105,,,InvalidKeySlot, +26,106,,,BootReasonAlreadySet, +26,107,,,BootReasonNotSet, +26,108,,,InvalidArgument, + +30,1,,,OutOfResource, +30,2,,,NotSupported, +30,3,,,InvalidArgument, +30,4,,,PermissionDenied, +30,5,,,AccessModeDenied, +30,6,,,DeviceCodeNotFound, + +101,1,,,NoAck, +101,2,,,BusBusy, +101,3,,,CommandListFull, +101,5,,,UnknownDevice, +101,253,,,Timeout, + +102,1,,,AlreadyBound, +102,2,,,AlreadyOpen, +102,3,,,DeviceNotFound, +102,4,,,InvalidArgument, +102,6,,,NotOpen, + +105,11,,,SettingsItemNotFound, + +105,100,149,,InternalError, +105,101,,,SettingsItemKeyAllocationFailed, +105,102,,,SettingsItemValueAllocationFailed, + +105,200,399,,InvalidArgument, +105,201,,,SettingsNameNull, +105,202,,,SettingsItemKeyNull, +105,203,,,SettingsItemValueNull, +105,204,,,SettingsItemKeyBufferNull, +105,205,,,SettingsItemValueBufferNull, + +105,221,,,SettingsNameEmpty, +105,222,,,SettingsItemKeyEmpty, + +105,241,,,SettingsNameTooLong, +105,242,,,SettingsItemKeyTooLong, + +105,261,,,SettingsNameInvalidFormat, +105,262,,,SettingsItemKeyInvalidFormat, +105,263,,,SettingsItemValueInvalidFormat, + +114,1,,,OperationFailed, +114,6,,,NotSupported, +114,7,,,NotFound, + +116,0,,,NotInitialized, +116,1,,,NoCapability, + +116,102,,,OffsetInvalid, +116,103,,,UninitializedClock, + +116,200,,,NotComparable, +116,201,,,Overflowed, + +116,801,,,OutOfMemory, + +116,900,919,,InvalidArgument, +116,901,,,InvalidPointer, +116,902,,,OutOfRange, +116,903,,,InvalidTimeZoneBinary, +116,989,,,NotFound, +116,990,,,NotImplemented, + +122,1,,,InvalidArgument, +122,2,,,NotFound, +122,3,,,TargetLocked, +122,4,,,TargetAlreadyMounted, +122,5,,,TargetNotMounted, +122,6,,,AlreadyOpen, +122,7,,,NotOpen, +122,8,,,InternetRequestDenied, +122,9,,,ServiceOpenLimitReached, +122,10,,,SaveDataNotFound, + +122,31,,,NetworkServiceAccountNotAvailable, + +122,80,,,PassphrasePathNotFound, +122,81,,,DataVerificationFailed, + +122,90,,,PermissionDenied, +122,91,,,AllocationFailed, + +122,98,,,InvalidOperation, + +122,204,,,InvalidDeliveryCacheStorageFile, +122,205,,,StorageOpenLimitReached, + +123,0,4999,,SslService, + +124,0,,,Cancelled, +124,1,,,CancelledByUser, +124,100,,,UserNotExist, +124,200,269,,NetworkServiceAccountUnavailable, +124,430,499,,TokenCacheUnavailable, +124,3000,8191,,NetworkCommunicationError, + +133,16,,,IllegalRequest, + +137,70,,,HttpConnectionCanceled, + +138,2,,,AlreadyInitialized, +138,3,,,NotInitialized, + +147,1,,,NotInitialized, +147,2,,,AlreadyInitialized, +147,3,,,OutOfArraySpace, +147,4,,,OutOfFieldSpace, +147,5,,,OutOfMemory, +147,7,,,InvalidArgument, +147,8,,,NotFound, +147,9,,,FieldCategoryMismatch, +147,10,,,FieldTypeMismatch, +147,11,,,AlreadyExists, +147,12,,,CorruptJournal, +147,13,,,CategoryNotFound, +147,14,,,RequiredContextMissing, +147,15,,,RequiredFieldMissing, +147,16,,,FormatterError, +147,17,,,InvalidPowerState, +147,18,,,ArrayFieldTooLarge, +147,19,,,AlreadyOwned, + +158,2,,,BootImagePackageNotFound, +158,3,,,InvalidBootImagePackage, +158,4,,,TooSmallWorkBuffer, +158,5,,,NotAlignedWorkBuffer, +158,6,,,NeedsRepairBootImages, + +162,1,,,ApplicationAborted, +162,2,,,SystemModuleAborted, + +163,1,,,AllocationFailed, +163,2,,,NullGraphicsBuffer, +163,3,,,AlreadyThrown, +163,4,,,TooManyEvents, +163,5,,,InRepairWithoutVolHeld, +163,6,,,InRepairWithoutTimeReviserCartridge, + +168,0,,,UndefinedInstruction, +168,1,,,InstructionAbort, +168,2,,,DataAbort, +168,3,,,AlignmentFault, +168,4,,,DebuggerAttached, +168,5,,,BreakPoint, +168,6,,,UserBreak, +168,7,,,DebuggerBreak, +168,8,,,UndefinedSystemCall, +168,9,,,MemorySystemError, +168,99,,,IncompleteReport, + +183,1,,,CannotDebug, +183,2,,,AlreadyAttached, +183,3,,,Cancelled, + +189,2,,,InvalidArgument, + +198,1,,,NotSupported, +198,2,,,InvalidArgument, +198,3,,,NotAvailable, +198,101,,,CalibrationDataCrcError, + +202,140,149,,Invalid, +202,601,,,DualConnected, +202,602,,,SameJoyTypeConnected, +202,603,,,ColorNotAvailable, +202,604,,,ControllerNotConnected, +202,3101,,,Canceled, +202,3102,,,NotSupportedNpadStyle, +202,3200,3209,,ControllerFirmwareUpdateError, +202,3201,,,ControllerFirmwareUpdateFailed, + +205,110,119,,IrsensorUnavailable, +205,110,,,IrsensorUnconnected, +205,111,,,IrsensorUnsupported, +205,120,,,IrsensorNotReady, +205,122,139,,IrsensorDeviceError, + +206,2,99,,AlbumError, +206,3,,,AlbumWorkMemoryError, +206,7,,,AlbumAlreadyOpened, +206,8,,,AlbumOutOfRange, + +206,10,19,,AlbumInvalidFileId, +206,11,,,AlbumInvalidApplicationId, +206,12,,,AlbumInvalidTimestamp, +206,13,,,AlbumInvalidStorage, +206,14,,,AlbumInvalidFileContents, + +206,21,,,AlbumIsNotMounted, +206,22,,,AlbumIsFull, +206,23,,,AlbumFileNotFound, +206,24,,,AlbumInvalidFileData, +206,25,,,AlbumFileCountLimit, +206,26,,,AlbumFileNoThumbnail, +206,30,,,AlbumReadBufferShortage, + +206,90,99,,AlbumFileSystemError, +206,94,96,,AlbumAccessCorrupted, +206,96,,,AlbumDestinationAccessCorrupted, + +206,800,899,,ControlError, +206,820,,,ControlResourceLimit, +206,822,,,ControlNotOpened, + +206,1023,,,NotSupported, + +206,1024,2047,,InternalError, +206,1210,,,InternalJpegEncoderError, +206,1212,,,InternalJpegWorkMemoryShortage, + +206,1300,1399,,InternalFileDataVerificationError, +206,1301,,,InternalFileDataVerificationEmptyFileData, +206,1302,,,InternalFileDataVerificationExifExtractionFailed, +206,1303,,,InternalFileDataVerificationExifAnalyzationFailed, +206,1304,,,InternalFileDataVerificationDateTimeExtractionFailed, +206,1305,,,InternalFileDataVerificationInvalidDateTimeLength, +206,1306,,,InternalFileDataVerificationInconsistentDateTime, +206,1307,,,InternalFileDataVerificationMakerNoteExtractionFailed, +206,1308,,,InternalFileDataVerificationInconsistentApplicationId, +206,1309,,,InternalFileDataVerificationInconsistentSignature, +206,1310,,,InternalFileDataVerificationUnsupportedOrientation, +206,1311,,,InternalFileDataVerificationInvalidDataDimension, +206,1312,,,InternalFileDataVerificationInconsistentOrientation, + +206,1400,1499,,InternalAlbumLimitationError, +206,1401,,,InternalAlbumLimitationFileCountLimit, + +206,1500,1599,,InternalSignatureError, +206,1501,,,InternalSignatureExifExtractionFailed, +206,1502,,,InternalSignatureMakerNoteExtractionFailed, + +206,1700,1799,,InternalAlbumSessionError, +206,1701,,,InternalAlbumLimitationSessionCountLimit, + +206,1900,1999,,InternalAlbumTemporaryFileError, +206,1901,,,InternalAlbumTemporaryFileCountLimit, +206,1902,,,InternalAlbumTemporaryFileCreateError, +206,1903,,,InternalAlbumTemporaryFileCreateRetryCountLimit, +206,1904,,,InternalAlbumTemporaryFileOpenError, +206,1905,,,InternalAlbumTemporaryFileGetFileSizeError, +206,1906,,,InternalAlbumTemporaryFileSetFileSizeError, +206,1907,,,InternalAlbumTemporaryFileReadFileError, +206,1908,,,InternalAlbumTemporaryFileWriteFileError, + +228,1,,,NotImplemented, +228,2,,,NotAvailable, +228,3,,,ApplicationNotRunning, +228,4,,,BufferNotEnough, +228,5,,,ApplicationContentNotFound, +228,6,,,ContentMetaNotFound, + +428,1,49,,InvalidArgument, +428,2,,,NullArgument, +428,3,,,ArgumentOutOfRange, +428,4,,,BufferTooSmall, + +428,51,,,ServiceNotInitialized, + +428,101,,,NotImplemented, + +428,1000,1999,,InvalidData, +428,1001,1019,,InvalidInitialProcessData, +428,1002,1009,,InvalidKip, +428,1003,,,InvalidKipFileSize,The size of the KIP file was smaller than expected. +428,1004,,,InvalidKipMagic,The magic value of the KIP file was not KIP1. +428,1005,,,InvalidKipSegmentSize,The size of the compressed KIP segment was smaller than expected. +428,1006,,,KipSegmentDecompressionFailed,An error occurred while decompressing a KIP segment. + +428,1010,1019,,InvalidIni, +428,1011,,,InvalidIniFileSize,The size of the INI file was smaller than expected. +428,1012,,,InvalidIniMagic,The magic value of the INI file was not INI1. +428,1013,,,InvalidIniProcessCount,The INI had an invalid process count. + +428,1020,1039,,InvalidPackage2, +428,1021,,,InvalidPackage2HeaderSignature, +428,1022,,,InvalidPackage2MetaSizeA, +428,1023,,,InvalidPackage2MetaSizeB, +428,1024,,,InvalidPackage2MetaKeyGeneration, +428,1025,,,InvalidPackage2MetaMagic, +428,1026,,,InvalidPackage2MetaEntryPointAlignment, +428,1027,,,InvalidPackage2MetaPayloadAlignment, +428,1028,,,InvalidPackage2MetaPayloadSizeAlignment, +428,1029,,,InvalidPackage2MetaTotalSize, +428,1030,,,InvalidPackage2MetaPayloadSize, +428,1031,,,InvalidPackage2MetaPayloadsOverlap, +428,1032,,,InvalidPackage2MetaEntryPointNotFound, +428,1033,,,InvalidPackage2PayloadCorrupted, + +428,1040,1059,,InvalidPackage1, +428,1041,,,InvalidPackage1SectionSize, +428,1042,,,InvalidPackage1MarikoBodySize, +428,1043,,,InvalidPackage1Pk11Size, diff --git a/src/LibHac/Result.cs b/src/LibHac/Result.cs index 830a7ffc..463cecc6 100644 --- a/src/LibHac/Result.cs +++ b/src/LibHac/Result.cs @@ -311,6 +311,54 @@ namespace LibHac { return ((uint)value & ~(~default(ulong) << bitsCount)) << bitsOffset; } + + /// + /// A that can't be used as a itself, but can check if its + /// range includes other s. + /// + public readonly struct Abstract + { + private readonly ulong _value; + + public Abstract(int module, int description) : this(module, description, description) { } + + public Abstract(int module, int descriptionStart, int descriptionEnd) + { + Debug.Assert(ModuleBegin <= module && module < ModuleEnd, "Invalid Module"); + Debug.Assert(DescriptionBegin <= descriptionStart && descriptionStart < DescriptionEnd, "Invalid Description Start"); + Debug.Assert(DescriptionBegin <= descriptionEnd && descriptionEnd < DescriptionEnd, "Invalid Description End"); + Debug.Assert(descriptionStart <= descriptionEnd, "descriptionStart must be <= descriptionEnd"); + + _value = SetBitsValueLong(module, ModuleBitsOffset, ModuleBitsCount) | + SetBitsValueLong(descriptionStart, DescriptionBitsOffset, DescriptionBitsCount) | + SetBitsValueLong(descriptionEnd, DescriptionEndBitsOffset, DescriptionBitsCount); + } + + public BaseType Module => GetBitsValueLong(_value, ModuleBitsOffset, ModuleBitsCount); + public BaseType DescriptionRangeStart => GetBitsValueLong(_value, DescriptionBitsOffset, DescriptionBitsCount); + public BaseType DescriptionRangeEnd => GetBitsValueLong(_value, DescriptionEndBitsOffset, DescriptionBitsCount); + + private Result Value => new Result((BaseType)_value); + + /// + /// Checks if the range of this includes the provided . + /// + /// The to check. + /// if the range includes . Otherwise, . + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool Includes(Result result) + { + // 99% of the time the values in this struct will be constants. + // This check allows the compiler to optimize this method down to a simple comparison when possible. + if (DescriptionRangeStart == DescriptionRangeEnd) + { + return result.Value == Value.Value; + } + + return result.Module == Module && + result.Description - DescriptionRangeStart <= DescriptionRangeEnd - DescriptionRangeStart; + } + } } public interface IResultLogger diff --git a/src/LibHac/ResultNameResolver.cs b/src/LibHac/ResultNameResolver.cs index 545a9622..e7ba9795 100644 --- a/src/LibHac/ResultNameResolver.cs +++ b/src/LibHac/ResultNameResolver.cs @@ -57,6 +57,9 @@ namespace LibHac foreach (ref readonly Element element in elements) { + if (element.IsAbstract) + continue; + var result = new Result(element.Module, element.DescriptionStart); if (!dict.TryAdd(result, GetName(element.NameOffset).ToString())) @@ -89,6 +92,7 @@ namespace LibHac public short Module; public short DescriptionStart; public short DescriptionEnd; + public bool IsAbstract; } #pragma warning restore 649 }