diff --git a/build/CodeGen/results.csv b/build/CodeGen/results.csv index 89fc2eb6..3bdab9e6 100644 --- a/build/CodeGen/results.csv +++ b/build/CodeGen/results.csv @@ -57,6 +57,8 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,30,45,,,UsableSpaceNotEnough, 2,31,,,,UsableSpaceNotEnoughForSaveData, +2,32,,,,UsableSpaceNotEnoughAfterDataErase, +2,33,,,,UsableSpaceNotEnoughForCacheStorage, 2,34,38,,,UsableSpaceNotEnoughForBis, 2,35,,,,UsableSpaceNotEnoughForBisCalibration, 2,36,,,,UsableSpaceNotEnoughForBisSafe, @@ -65,6 +67,7 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,39,,,,UsableSpaceNotEnoughForSdCard, 2,50,,,,UnsupportedSdkVersion, 2,60,,,,MountNameAlreadyExists, +2,70,,,,IndividualFileDataCacheAlreadyEnabled, 2,1000,2999,,,HandledBySystemProcess, 2,1001,,,,PartitionNotFound, @@ -155,18 +158,132 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,2200,,,,PortSdCardNotSupported, 2,2201,,,,PortSdCardNotImplemented, +2,2496,,,,SdCardStorageDeviceInvalidated, +2,2497,,,,SdCardFormatWriteVerificationFailed, 2,2498,,,,SdCardFileSystemInvalidatedByRemoved, +2,2499,,,,SdCardDeviceUnknownError, 2,2500,2999,,,GameCardAccessFailed, -2,2503,,,,InvalidBufferForGameCard, -2,2520,,,,GameCardNotInserted, -2,2531,,,,GameCardCardAccessTimeout, +2,2503,,,,GameCardPreconditionViolation, +2,2504,,,,GameCardNotImplemented, +2,2510,,,,GameCardNoAvailableLockers, +2,2511,,,,GameCardLockerIndexOutOfRange, + +2,2520,,,,GameCardNotInserted, +2,2521,,,,InvalidGameCardIdInSpecificData, +2,2522,,,,GameCardCardNotActivated, +2,2523,,,,InvalidCommandForDeactivatedGameCardAsic, + +2,2531,,,,GameCardCardAccessTimeout, +2,2532,,,,GameCardStatusFatalError, +2,2533,,,,GameCardReadFailure, +2,2536,,,,GameCardRetryLimitHit, +2,2537,,,,GameCardStatusRefreshRequested, +2,2538,,,,GameCardStatusCrcErrorAndRefreshRequested, + +2,2540,,,,InvalidSecureAccess, +2,2541,,,,InvalidNormalAccess, +2,2542,,,,InvalidAccessAcrossMode, +2,2543,2546,,,GameCardWrongCard, +2,2544,,,,InvalidGameCardInitialDataHash, +2,2545,,,,InvalidGameCardInitialDataReservedArea, +2,2546,,,,InvalidGameCardCertificateKekIndex, +2,2548,,,,InvalidGameCardModeForGetCardDeviceCertificate, +2,2549,,,,NotSupportedForGameCardSecurityMode, +2,2550,,,,, +2,2551,,,,GameCardReadHeaderTryTimeoutForActivation, +2,2552,,,,, +2,2553,,,,InvalidGameCardModeForGetChallengeCardExistence, +2,2554,,,,InvalidGameCardHeader, +2,2555,,,,InvalidGameCardCertificate, + +2,2557,,,,, +2,2558,,,,, + +2,2565,2595,,,GameCardCommunicationFailure, + +2,2599,,,,GameCardInvalidStateTransition, +2,2600,,,,GameCardAsicInvalidTransitionToNormalMode, +2,2601,,,,GameCardAsicInvalidTransitionToSecureMode, +2,2602,,,,GameCardAsicInvalidTransitionToWriteMode, + +2,2629,,,,GameCardAsicInitializationFailureForWriterFirmware, +2,2630,2669,,,GameCardAsicInitializationFailure, +2,2631,,,,GameCardAsicGetDeviceStatusFailure, +2,2632,,,,GameCardAsicActivationFailure, +2,2634,,,,GameCardAsicSetUserAsicFirmwareFailure, +2,2637,,,,GameCardAsicGetAsicCertFailure, +2,2638,,,,GameCardParseCertificateFailure, +2,2639,,,,InvalidGameCardAsicCertificate, +2,2640,,,,GameCardAsicSetEmmcEmbeddedSocCertificateFailure, +2,2645,,,,GameCardAsicGetAsicEncryptedMessageFailure, +2,2646,,,,GameCardAsicSetLibraryEncryptedMessageFailure, + +2,2651,,,,GameCardAsicGetAsicAuthenticationDataFailure, +2,2652,,,,GameCardAsicSetAsicAuthenticationDataHashFailure, +2,2653,,,,GameCardAsicSetLibraryAuthenticationDataFailure, +2,2654,,,,GameCardAsicGetLibraryAuthenticationDataHashFailure, +2,2655,,,,GameCardInvalidLibraryAuthenticationDataHash, +2,2658,,,,GameCardAsicEnterSecureAsicModeFailure, +2,2659,,,,GameCardAsicExchangeRandomValuesInSecureModeFailure, +2,2660,,,,GameCardAsicChallengeCardExistenceFailure, +2,2663,,,,GameCardAsicActivationTimeout, + +2,2665,2669,,,GameCardSplFailure, +2,2666,,,,GameCardSplDecryptAesKeyFailure, +2,2667,,,,GameCardSplDecryptAndStoreGcKeyFailure, +2,2668,,,,GameCardSplGenerateRandomBytesFailure, +2,2669,,,,GameCardSplDecryptGcMessageFailure, + +2,2671,,,,GameCardAsicReadAsicRegisterFailure, +2,2672,,,,GameCardAsicWriteAsicRegisterFailure, +2,2673,,,,GameCardAsicEnableCardBusFailure, +2,2674,,,,GameCardAsicGetCardHeaderFailure, +2,2675,,,,GameCardAsicStatusError, +2,2676,,,,GameCardAsicGetCardKeyAreaFailure, +2,2677,,,,GameCardAsicChangeDebugModeFailure, +2,2678,,,,GameCardAsicGetRmaInformationFailure, +2,2680,,,,GameCardAsicStatusBit22Set, +2,2681,,,,GameCardSecureValuesNotInitialized, +2,2692,,,,InvalidSecureGameCardCommand, +2,2693,,,,InvalidWriteGameCardCommand, + +2,2703,,,,GameCardSetVoltageFailure, + +2,2731,,,,GameCardCommandReadId1Failure, +2,2732,,,,GameCardCommandReadId2Failure, +2,2733,,,,GameCardCommandReadId3Failure, +2,2735,,,,GameCardCommandReadPageFailure, +2,2736,,,,GameCardCommandReadPageUnalignedFailure, +2,2737,,,,GameCardCommandWritePageFailure, +2,2738,,,,GameCardCommandRefreshFailure, +2,2739,,,,GameCardCommandUpdateKeyFailure, +2,2742,,,,GameCardCommandReadCrcFailure, +2,2743,,,,GameCardCommandEraseFailure, +2,2744,,,,GameCardCommandReadDevParamFailure, +2,2745,,,,GameCardCommandWriteDevParamFailure, + +2,2901,,,,GameCardParameterError, +2,2902,,,,, +2,2903,,,,, +2,2904,,,,, +2,2905,,,,, +2,2906,,,,, + +2,2950,,,,InvalidGameCardStorageAttribute, 2,2951,,,,GameCardNotInsertedOnGetHandle, 2,2952,,,,InvalidGameCardHandleOnRead, 2,2954,,,,InvalidGameCardHandleOnGetCardInfo, +2,2955,,,,InvalidGameCardHandleOnGetGameCardDeviceCertificate, +2,2956,,,,InvalidGameCardHandleOnGetGameCardImageHash, +2,2957,,,,InvalidGameCardHandleOnChallengeCardExistence, +2,2958,,,,InvalidGameCardHandleOnOnAcquireLock, +2,2959,,,,InvalidGameCardModeOnAcquireSecureLock, 2,2960,,,,InvalidGameCardHandleOnOpenNormalPartition, 2,2961,,,,InvalidGameCardHandleOnOpenSecurePartition, +2,2962,,,,InvalidGameCardCompatibilityType, +2,2963,,,,GameCardsNotSupportedOnDeviceModel, 2,3000,7999,,,Internal, 2,3001,,,,NotImplemented, @@ -174,13 +291,21 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,3003,,,,SaveDataPathAlreadyExists, 2,3005,,,,OutOfRange, +2,3099,,,,, 2,3100,,,,SystemPartitionNotReady, 2,3101,,,,StorageDeviceNotReady, 2,3200,3499,,,AllocationMemoryFailed, +2,3201,,,,AllocationMemoryFailedInPrFile2, +2,3203,,,,AllocationMemoryFailedInFatFileSystemA, +2,3204,,,,AllocationMemoryFailedInFatFileSystemB, +2,3205,,,,AllocationMemoryFailedInFatFileSystemC, +2,3206,,,,AllocationMemoryFailedInFatFileSystemD, +2,3208,,,,AllocationMemoryFailedInFatFileSystemE, 2,3211,,,,AllocationMemoryFailedInFileSystemAccessorA, 2,3212,,,,AllocationMemoryFailedInFileSystemAccessorB, 2,3213,,,,AllocationMemoryFailedInApplicationA, +2,3214,,,,AllocationMemoryFailedInBcatSaveDataA, 2,3215,,,,AllocationMemoryFailedInBisA, 2,3216,,,,AllocationMemoryFailedInBisB, 2,3217,,,,AllocationMemoryFailedInBisC, @@ -195,32 +320,91 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,3226,,,,AllocationMemoryFailedInGameCardB, 2,3227,,,,AllocationMemoryFailedInGameCardC, 2,3228,,,,AllocationMemoryFailedInGameCardD, +2,3229,,,,AllocationMemoryFailedInHostA, +2,3230,,,,AllocationMemoryFailedInHostB, +2,3231,,,,AllocationMemoryFailedInHostC, 2,3232,,,,AllocationMemoryFailedInImageDirectoryA, +2,3233,,,,AllocationMemoryFailedInLogoA, +2,3234,,,,AllocationMemoryFailedInRomA, +2,3235,,,,AllocationMemoryFailedInRomB, +2,3236,,,,AllocationMemoryFailedInRomC, +2,3237,,,,AllocationMemoryFailedInRomD, +2,3238,,,,AllocationMemoryFailedInRomE, +2,3239,,,,AllocationMemoryFailedInRomF, +2,3242,,,,AllocationMemoryFailedInSaveDataManagementA, +2,3243,,,,AllocationMemoryFailedInSaveDataThumbnailA, 2,3244,,,,AllocationMemoryFailedInSdCardA, 2,3245,,,,AllocationMemoryFailedInSdCardB, 2,3246,,,,AllocationMemoryFailedInSystemSaveDataA, 2,3247,,,,AllocationMemoryFailedInRomFsFileSystemA, 2,3248,,,,AllocationMemoryFailedInRomFsFileSystemB, 2,3249,,,,AllocationMemoryFailedInRomFsFileSystemC, +2,3251,,,,AllocationMemoryFailedInGuidPartitionTableA, +2,3252,,,,AllocationMemoryFailedInDeviceDetectionEventManagerA, +2,3253,,,,AllocationMemoryFailedInSaveDataFileSystemServiceImplA, + +2,3254,,,,AllocationMemoryFailedInFileSystemProxyCoreImplB, + +2,3255,,,,AllocationMemoryFailedInSdCardProxyFileSystemCreatorA, 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,3259,,,,AllocationMemoryFailedInSdmmcStorageServiceA, +2,3260,,,,AllocationMemoryFailedInBuiltInStorageCreatorA, +2,3261,,,,AllocationMemoryFailedInBuiltInStorageCreatorB, +2,3262,,,,AllocationMemoryFailedInBuiltInStorageCreatorC, +2,3264,,,,AllocationMemoryFailedFatFileSystemWithBufferA,In Initialize allocating ProgramInfoNode +2,3265,,,,AllocationMemoryFailedInFatFileSystemCreatorA, +2,3266,,,,AllocationMemoryFailedInFatFileSystemCreatorB, +2,3267,,,,AllocationMemoryFailedInGameCardFileSystemCreatorA, +2,3268,,,,AllocationMemoryFailedInGameCardFileSystemCreatorB, +2,3269,,,,AllocationMemoryFailedInGameCardFileSystemCreatorC, +2,3270,,,,AllocationMemoryFailedInGameCardFileSystemCreatorD, +2,3271,,,,AllocationMemoryFailedInGameCardFileSystemCreatorE, +2,3272,,,,AllocationMemoryFailedInGameCardFileSystemCreatorF, +2,3273,,,,AllocationMemoryFailedInGameCardManagerA, +2,3274,,,,AllocationMemoryFailedInGameCardManagerB, +2,3275,,,,AllocationMemoryFailedInGameCardManagerC, +2,3276,,,,AllocationMemoryFailedInGameCardManagerD, +2,3277,,,,AllocationMemoryFailedInGameCardManagerE, +2,3278,,,,AllocationMemoryFailedInGameCardManagerF, +2,3279,,,,AllocationMemoryFailedInLocalFileSystemCreatorA, 2,3280,,,,AllocationMemoryFailedInPartitionFileSystemCreatorA,In Create allocating PartitionFileSystemCore 2,3281,,,,AllocationMemoryFailedInRomFileSystemCreatorA, +2,3282,,,,AllocationMemoryFailedInSaveDataFileSystemCreatorA, +2,3283,,,,AllocationMemoryFailedInSaveDataFileSystemCreatorB, +2,3284,,,,AllocationMemoryFailedInSaveDataFileSystemCreatorC, +2,3285,,,,AllocationMemoryFailedInSaveDataFileSystemCreatorD, +2,3286,,,,AllocationMemoryFailedInSaveDataFileSystemCreatorE, 2,3288,,,,AllocationMemoryFailedInStorageOnNcaCreatorA, 2,3289,,,,AllocationMemoryFailedInStorageOnNcaCreatorB, +2,3290,,,,AllocationMemoryFailedInSubDirectoryFileSystemCreatorA, +2,3291,,,,AllocationMemoryFailedInTargetManagerFileSystemCreatorA, +2,3292,,,,AllocationMemoryFailedInSaveDataIndexerA, +2,3293,,,,AllocationMemoryFailedInSaveDataIndexerB, 2,3294,,,,AllocationMemoryFailedInFileSystemBuddyHeapA, 2,3295,,,,AllocationMemoryFailedInFileSystemBufferManagerA, 2,3296,,,,AllocationMemoryFailedInBlockCacheBufferedStorageA, 2,3297,,,,AllocationMemoryFailedInBlockCacheBufferedStorageB, +2,3298,,,,AllocationMemoryFailedInDuplexStorageA, + 2,3304,,,,AllocationMemoryFailedInIntegrityVerificationStorageA, 2,3305,,,,AllocationMemoryFailedInIntegrityVerificationStorageB, +2,3306,,,,AllocationMemoryFailedInJournalStorageA, +2,3307,,,,AllocationMemoryFailedInJournalStorageB, +2,3310,,,,AllocationMemoryFailedInSaveDataFileSystemCoreA, +2,3311,,,,AllocationMemoryFailedInSaveDataFileSystemCoreB, 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,3316,,,,AllocationMemoryFailedInAesXtsFileSystemA, +2,3319,,,,AllocationMemoryFailedInConcatenationFileSystemA, +2,3320,,,,AllocationMemoryFailedInConcatenationFileSystemB, +2,3321,,,,AllocationMemoryFailedInDirectorySaveDataFileSystemA, + +2,3322,,,,AllocationMemoryFailedInLocalFileSystemA, +2,3323,,,,AllocationMemoryFailedInLocalFileSystemB, 2,3341,,,,AllocationMemoryFailedInNcaFileSystemDriverI, 2,3347,,,,AllocationMemoryFailedInPartitionFileSystemA,In Initialize allocating PartitionFileSystemMetaCore 2,3348,,,,AllocationMemoryFailedInPartitionFileSystemB,In DoOpenFile allocating PartitionFile @@ -229,25 +413,48 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,3351,,,,AllocationMemoryFailedInPartitionFileSystemMetaB,In Sha256 Initialize allocating metadata buffer 2,3352,,,,AllocationMemoryFailedInRomFsFileSystemD, 2,3355,,,,AllocationMemoryFailedInSubdirectoryFileSystemA,In Initialize allocating RootPathBuffer +2,3356,,,,AllocationMemoryFailedInTmFileSystemA, +2,3357,,,,AllocationMemoryFailedInTmFileSystemB, +2,3359,,,,AllocationMemoryFailedInProxyFileSystemA, +2,3360,,,,AllocationMemoryFailedInProxyFileSystemB, +2,3362,,,,AllocationMemoryFailedInSaveDataExtraDataAccessorCacheManagerA, 2,3363,,,,AllocationMemoryFailedInNcaReaderA, 2,3365,,,,AllocationMemoryFailedInRegisterA, 2,3366,,,,AllocationMemoryFailedInRegisterB, 2,3367,,,,AllocationMemoryFailedInPathNormalizer, 2,3375,,,,AllocationMemoryFailedInDbmRomKeyValueStorage, +2,3376,,,,AllocationMemoryFailedInDbmHierarchicalRomFileTable, 2,3377,,,,AllocationMemoryFailedInRomFsFileSystemE, +2,3378,,,,AllocationMemoryFailedInISaveFileSystemA, +2,3379,,,,AllocationMemoryFailedInISaveFileSystemB, +2,3380,,,,AllocationMemoryFailedInRomOnFileA, +2,3381,,,,AllocationMemoryFailedInRomOnFileB, +2,3382,,,,AllocationMemoryFailedInRomOnFileC, 2,3383,,,,AllocationMemoryFailedInAesXtsFileE,In Initialize +2,3384,,,,AllocationMemoryFailedInAesXtsFileSystemB, +2,3385,,,,AllocationMemoryFailedInAesXtsFileSystemC, 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,3406,,,,AllocationMemoryFailedInSdmmcStorageServiceB, +2,3407,,,,AllocationMemoryFailedInFileSystemInterfaceAdapter,In OpenFile or OpenDirectory +2,3408,,,,AllocationMemoryFailedInGameCardFileSystemCreatorG, +2,3409,,,,AllocationMemoryFailedInGameCardFileSystemCreatorH, 2,3411,,,,AllocationMemoryFailedInBufferedStorageA, 2,3412,,,,AllocationMemoryFailedInIntegrityRomFsStorageA, -2,3421,,,,AllocationMemoryFailedInCreateShared, -2,3422,,,,AllocationMemoryFailedInMakeUnique, -2,3423,,,,AllocationMemoryFailedInAllocateShared, -2,3424,,,,AllocationMemoryFailedPooledBufferNotEnoughSize, +2,3416,,,,AllocationMemoryFailedInSaveDataFileSystemServiceImplB, +2,3420,,,,AllocationMemoryFailedNew, +2,3421,,,,AllocationMemoryFailedCreateShared, +2,3422,,,,AllocationMemoryFailedMakeUnique, +2,3423,,,,AllocationMemoryFailedAllocateShared, +2,3424,,,,AllocationPooledBufferNotEnoughSize, +2,3428,,,,AllocationMemoryFailedInWriteThroughCacheStorageA, +2,3429,,,,AllocationMemoryFailedInSaveDataTransferManagerA, +2,3430,,,,AllocationMemoryFailedInSaveDataTransferManagerB, +2,3431,,,,AllocationMemoryFailedInHtcFileSystemA, +2,3432,,,,AllocationMemoryFailedInHtcFileSystemB, +2,3433,,,,AllocationMemoryFailedInGameCardManagerG, 2,3500,3999,,,MmcAccessFailed, 2,3501,,,,PortMmcNoDevice, @@ -332,6 +539,9 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,3700,,,,PortMmcNotSupported, 2,3701,,,,PortMmcNotImplemented, +2,3998,,,,, +2,3999,,,,PortMmcUnexpected, + 2,4000,4999,,,DataCorrupted, 2,4001,4299,,,RomCorrupted, 2,4002,,,,UnsupportedRomVersion, @@ -341,6 +551,7 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,4013,,,,InvalidAesCtrCounterExtendedTableSize, 2,4014,,,,InvalidAesCtrCounterExtendedGeneration, 2,4015,,,,InvalidAesCtrCounterExtendedOffset, +2,4016,,,,, 2,4021,4029,,,IndirectStorageCorrupted, 2,4022,,,,InvalidIndirectEntryOffset, @@ -349,6 +560,7 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,4025,,,,InvalidIndirectVirtualOffset, 2,4026,,,,InvalidIndirectPhysicalOffset, 2,4027,,,,InvalidIndirectStorageIndex, +2,4028,,,,InvalidIndirectStorageBucketTreeSize, 2,4031,4039,,,BucketTreeCorrupted, 2,4032,,,,InvalidBucketTreeSignature, @@ -374,6 +586,13 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,4061,,,,InvalidRomNcaKeyIndex, 2,4062,,,,InvalidRomNcaFsHeaderHashType, 2,4063,,,,InvalidRomNcaFsHeaderEncryptionType, +2,4064,,,,InvalidRomNcaPatchInfoIndirectSize, +2,4065,,,,InvalidRomNcaPatchInfoAesCtrExSize, +2,4066,,,,InvalidRomNcaPatchInfoAesCtrExOffset, +2,4067,,,,InvalidRomNcaId, +2,4068,,,,InvalidRomNcaHeader, +2,4069,,,,InvalidRomNcaFsHeader, +2,4070,,,,InvalidRomNcaPatchInfoIndirectOffset, 2,4071,4079,,,RomNcaHierarchicalSha256StorageCorrupted, 2,4072,,,,InvalidRomHierarchicalSha256BlockSize, @@ -381,11 +600,13 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,4074,,,,RomHierarchicalSha256BaseStorageTooLarge, 2,4075,,,,RomHierarchicalSha256HashVerificationFailed, +2,4081,,,,InvalidRomHierarchicalIntegrityVerificationLayerCount, +2,4082,,,,RomNcaIndirectStorageOutOfRange, + 2,4141,4179,,,RomIntegrityVerificationStorageCorrupted, 2,4142,,,,IncorrectRomIntegrityVerificationMagic, 2,4143,,,,InvalidRomZeroHash, 2,4144,,,,RomNonRealDataVerificationFailed, -2,4145,,,,InvalidRomHierarchicalIntegrityVerificationLayerCount, 2,4151,4159,,,RomRealDataVerificationFailed, 2,4152,,,,ClearedRomRealDataVerificationFailed, @@ -412,31 +633,104 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,4262,,,,InvalidRomAllocationTableBlock, 2,4263,,,,InvalidRomKeyValueListElementIndex, +2,4280,4284,,,RomStorageCorrupted,Returned directly when the header says the total size of the RomFs metadata is 0 bytes. +2,4281,,,,InvalidRomStorageSize,The RomFs metadata is located beyond the end of the provided storage. + 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,4311,4319,,,JournalIntegritySaveDataCorrupted, +2,4312,,,,InvalidJournalIntegritySaveDataMasterDataSize, +2,4313,,,,InconsistentJournalIntegritySaveDataCommitState, +2,4314,,,,InvalidJournalIntegritySaveDataStorageSize, +2,4315,,,,InvalidJournalIntegritySaveDataMasterHeader, +2,4316,,,,InvalidJournalIntegritySaveDataSignature, +2,4317,,,,IncorrectJournalIntegritySaveDataLayoutHeaderMagic, + +2,4321,4329,,,DuplexStorageCorrupted, +2,4322,,,,IncorrectHierarchicalDuplexStorageControlAreaMagic, +2,4323,,,,DuplexStorageAccessOutOfRange, + +2,4331,4339,,,RemapStorageCorrupted, +2,4332,,,,InvalidRemapStorageMapEntryCount, +2,4333,,,,InvalidRemapStorageOffset, +2,4334,,,,InvalidRemapStorageSize, +2,4335,,,,InvalidRemapStorageAlignment, +2,4336,,,,InvalidRemapStorageStorageType, +2,4337,,,,InvalidRemapStorageNewMapEntryOffset,The range of the new map entry overlaps with the range of an existing map entry. +2,4338,,,,RemapStorageStorageNotRegistered,The storage for the map entry's storage type hasn't been registered. +2,4339,,,,RemapStorageInvalidRegisteredStorageSize,The storage registered for the map entry's storage type is too short to contain the physical range specified in the map entry. + +2,4341,4349,,,UnionStorageCorrupted, +2,4342,,,,InvalidUnionStorageBlockSize, +2,4343,,,,InvalidUnionStorageLogOffsetAlignment, +2,4344,,,,InvalidUnionStorageLogOffsetForCommit, +2,4345,,,,InvalidUnionStorageLogOffset, + +2,4352,,,,InvalidSaveDataThumbnailHash, +2,4357,,,,InvalidSaveDataInternalStorageIntegritySeedSize, +2,4358,,,,, +2,4359,,,,, + +2,4361,4399,,,SaveDataIntegrityVerificationStorageCorrupted, +2,4362,,,,IncorrectSaveDataIntegrityVerificationMagic, +2,4363,,,,InvalidSaveDataZeroHash, +2,4364,,,,SaveDataNonRealDataVerificationFailed, + +2,4372,,,,ClearedSaveDataRealDataVerificationFailed, +2,4373,,,,UnclearedSaveDataRealDataVerificationFailed, 2,4402,,,,SaveDataInvalidGptPartitionSignature, + +2,4411,4419,,,SaveDataCoreFileSystemCorrupted, +2,4412,,,,IncorrectSaveDataControlAreaMagic, +2,4413,,,,InvalidSaveDataFileReadOffset, +2,4414,,,,InvalidSaveDataCoreDataStorageSize, + 2,4427,,,,IncompleteBlockInZeroBitmapHashStorageFileSaveData, + +2,4431,4439,,,JournalStorageCorrupted, +2,4432,,,,JournalStorageAccessOutOfRange, +2,4433,,,,InvalidJournalStorageDataStorageSize, + 2,4441,4459,,,SaveDataHostFileSystemCorrupted, 2,4442,,,,SaveDataHostEntryCorrupted, 2,4443,,,,SaveDataHostFileDataCorrupted, 2,4444,,,,SaveDataHostFileCorrupted, 2,4445,,,,InvalidSaveDataHostHandle, +2,4451,4459,,,MappingTableCorrupted, +2,4452,,,,InvalidMappingTableEntryCount, +2,4453,,,,InvalidMappingTablePhysicalIndex, +2,4454,,,,InvalidMappingTableVirtualIndex, + +2,4461,4479,,,SaveDataDatabaseCorrupted, 2,4462,,,,SaveDataAllocationTableCorrupted, -2,4463,,,,SaveDataFileTableCorrupted, -2,4464,,,,AllocationTableIteratedRangeEntry, +2,4463,,,,InvalidSaveDataKeyValueListElementIndex, +2,4464,,,,SaveDataAllocationTableIteratedRangeEntry, +2,4465,,,,InvalidSaveDataAllocationTableOffset, +2,4466,,,,InvalidSaveDataAllocationTableBlockCount, +2,4467,,,,InvalidSaveDataKeyValueListEntryIndex, +2,4468,,,,InvalidSaveDataBitmapIndex, + +2,4481,4489,,,SaveDataExtenderCorrupted, +2,4482,,,,IncorrectSaveDataExtensionContextMagic, +2,4483,,,,InvalidSaveDataExtensionContextState, +2,4484,,,,SaveDataExtensionContextMismatch,The extension context doesn't match the current save data. +2,4485,,,,InvalidSaveDataExtenderSize, + +2,4491,4499,,,IntegritySaveDataCorrupted, +2,4492,,,,InvalidIntegritySaveDataMasterDataSize, +2,4494,,,,InvalidIntegritySaveDataStorageSize, +2,4495,,,,InvalidIntegritySaveDataMasterHeader, +2,4496,,,,InvalidIntegritySaveDataSignature, +2,4497,,,,IncorrectIntegritySaveDataLayoutHeaderMagic, 2,4501,4599,,,NcaCorrupted, 2,4508,,,,NcaBaseStorageOutOfRangeA, 2,4509,,,,NcaBaseStorageOutOfRangeB, +2,4510,,,,NcaBaseStorageOutOfRangeC, 2,4511,4529,,,NcaFileSystemCorrupted, 2,4512,,,,InvalidNcaFileSystemType, @@ -457,6 +751,7 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,4527,,,,InvalidNcaId, 2,4528,,,,InvalidNcaHeader, 2,4529,,,,InvalidNcaFsHeader, +2,4530,,,,InvalidNcaPatchInfoIndirectOffset, 2,4531,4539,,,NcaHierarchicalSha256StorageCorrupted, 2,4532,,,,InvalidHierarchicalSha256BlockSize, @@ -464,13 +759,16 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,4534,,,,HierarchicalSha256BaseStorageTooLarge, 2,4535,,,,HierarchicalSha256HashVerificationFailed, +2,4541,,,,InvalidHierarchicalIntegrityVerificationLayerCount, +2,4542,,,,NcaIndirectStorageOutOfRange, 2,4543,,,,InvalidNcaHeader1SignatureKeyGeneration, +2,4545,,,,InvalidNspdVerificationData, +2,4546,,,,MissingNspdVerificationData, 2,4601,4639,,,IntegrityVerificationStorageCorrupted, 2,4602,,,,IncorrectIntegrityVerificationMagic, 2,4603,,,,InvalidZeroHash, 2,4604,,,,NonRealDataVerificationFailed, -2,4605,,,,InvalidHierarchicalIntegrityVerificationLayerCount, 2,4611,4619,,,RealDataVerificationFailed, 2,4612,,,,ClearedRealDataVerificationFailed, @@ -486,8 +784,11 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,4661,4679,,,BuiltInStorageCorrupted, 2,4662,,,,InvalidGptPartitionSignature, +2,4664,,,,InvalidGptPartitionStorageSize, 2,4681,4699,,,FatFileSystemCorrupted, +2,4683,,,,InvalidFatFormat, +2,4684,,,,InvalidFatFileNumber, 2,4685,,,,ExFatUnavailable, 2,4686,,,,InvalidFatFormatForBisUser, 2,4687,,,,InvalidFatFormatForBisSystem, @@ -504,8 +805,11 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,4721,4739,,,DatabaseCorrupted, 2,4722,,,,InvalidAllocationTableBlock, 2,4723,,,,InvalidKeyValueListElementIndex, -2,4724,,,,AllocationTableIteratedRangeEntryInternal, +2,4724,,,,AllocationTableIteratedRangeEntry, 2,4725,,,,InvalidAllocationTableOffset, +2,4726,,,,InvalidAllocationTableBlockCount, +2,4727,,,,InvalidKeyValueListEntryIndex, +2,4728,,,,InvalidBitmapIndex, 2,4741,4759,,,AesXtsFileSystemCorrupted, 2,4742,,,,AesXtsFileHeaderTooShort, @@ -517,8 +821,20 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,4748,,,,AesXtsFileHeaderInvalidKeysInSetSize, 2,4761,4769,,,SaveDataTransferDataCorrupted, +2,4762,,,,, +2,4763,,,,, +2,4764,,,,, +2,4765,,,,, +2,4766,,,,, +2,4767,,,,, 2,4771,4779,,,SignedSystemPartitionDataCorrupted, +2,4772,,,,, +2,4773,,,,, +2,4774,,,,, +2,4775,,,,, +2,4776,,,,, + 2,4781,,,,GameCardLogoDataCorrupted, 2,4785,,,,SimulatedDeviceDataCorrupted, @@ -530,12 +846,42 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,4812,,,,IncompleteBlockInZeroBitmapHashStorageFile, 2,5000,5999,,,Unexpected, +2,5002,,,,UnexpectedFatFileSystemError, +2,5003,,,,FatFileSystemDriverError, +2,5024,,,,FatSystemFileOpenCountLimit, +2,5025,,,,FatUserFileOpenCountLimit, +2,5026,,,,FatEntryIsDirectory, +2,5028,,,,FatFileSystemPermissionDenied, +2,5029,,,,FatDriverInitializationFailed, +2,5055,,,,UnexpectedFatSafeError, +2,5110,,,,, 2,5121,,,,UnexpectedFatFileSystemSectorCount, -2,5307,,,,UnexpectedErrorInHostFileFlush, -2,5308,,,,UnexpectedErrorInHostFileGetSize, -2,5309,,,,UnknownHostFileSystemError, +2,5122,,,,, +2,5123,,,,NullptrArgumentForFatFormat, +2,5124,,,,InvalidFatFormatParamsA, +2,5125,,,,InvalidFatFormatParamsB, +2,5126,,,,InvalidFatFormatParamsC, +2,5127,,,,InvalidFatFormatParamsD, +2,5131,,,,FatSectorWriteVerificationFailed, + +2,5304,,,,UnexpectedInJournalIntegritySaveDataFileSystemC,Tried to write to an IntegrityFilteredFile that is provisionally committed. +2,5305,,,,UnexpectedInLocalFileSystemA, +2,5306,,,,UnexpectedInLocalFileSystemB, +2,5307,,,,UnexpectedInLocalFileSystemC, +2,5308,,,,UnexpectedInLocalFileSystemD, +2,5309,,,,UnexpectedInLocalFileSystemE, +2,5310,,,,UnexpectedInLocalFileSystemF, + +2,5315,,,,UnexpectedInAesCtrStorageA, +2,5316,,,,UnexpectedInAesXtsStorageA, +2,5317,,,,, +2,5318,,,,, 2,5319,,,,UnexpectedInMountUtilityA, + 2,5320,,,,InvalidNcaMountPoint, +2,5321,,,,UnexpectedInRamDiskFileSystemA, +2,5322,,,,UnexpectedInBisWiperA, +2,5323,,,,UnexpectedInBisWiperB, 2,6000,6499,,,PreconditionViolation, 2,6001,6199,,,InvalidArgument, @@ -564,6 +910,7 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,6070,,,,InvalidCacheStorageIndex, 2,6071,,,,InvalidCommitNameCount,Up to 10 file systems can be committed at the same time. 2,6072,,,,InvalidOpenMode, +2,6073,,,,InvalidFileSize, 2,6074,,,,InvalidDirectoryOpenMode, 2,6075,,,,InvalidCommitOption, @@ -571,6 +918,9 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,6081,,,,InvalidSaveDataState, 2,6082,,,,InvalidSaveDataSpaceId, +2,6101,,,,GameCardLogoDataTooLarge, +2,6102,,,,FileDataCacheMemorySizeTooSmall, + 2,6200,6299,,,InvalidOperationForOpenMode, 2,6201,,,,FileExtensionWithoutOpenModeAllowAppend, 2,6202,,,,ReadUnpermitted, @@ -663,6 +1013,7 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,6386,,,,UnsupportedSetSizeForZeroBitmapHashStorageFile, 2,6400,6449,,,PermissionDenied, +2,6403,,,,PermissionDeniedForCreateHostFileSystem,Returned when opening a host FS on a retail device. 2,6450,,,,PortAcceptableCountLimited, 2,6452,,,,ExternalKeyAlreadyRegistered, @@ -672,13 +1023,19 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,6457,,,,WriteModeFileNotClosed, 2,6458,,,,AllocatorAlreadyRegistered, 2,6459,,,,DefaultAllocatorUsed, +2,6460,,,,GameCardLogoDataNotReadable, 2,6461,,,,AllocatorAlignmentViolation, +2,6462,,,,GlobalFileDataCacheAlreadyEnabled, 2,6463,,,,MultiCommitFileSystemAlreadyAdded,The provided file system has already been added to the multi-commit manager. +2,6464,,,,, 2,6465,,,,UserNotExist, 2,6466,,,,DefaultGlobalFileDataCacheEnabled, 2,6467,,,,SaveDataRootPathUnavailable, 2,6600,6699,,,NotFound, +2,6602,,,,SaveDataFileNotFound, +2,6603,,,,SaveDataDirectoryNotFound, +2,6604,,,,SaveDataFileTableEntryNotFound, 2,6605,,,,TargetProgramNotFound,Specified program is not found in the program registry. 2,6606,,,,TargetProgramIndexNotFound,Specified program index is not found @@ -694,11 +1051,57 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 2,6900,6999,,,BadState, 2,6902,,,,NotInitialized, +2,6903,,,,BisProxyInvalidated, +2,6904,,,,NcaDigestInconsistent, 2,6905,,,,NotMounted, 2,6906,,,,SaveDataIsExtending, +2,6907,,,,SaveDataToExpandIsProvisionallyCommitted, + +2,7002,,,,, +2,7003,,,,, +2,7004,,,,, +2,7005,,,,, +2,7006,,,,, +2,7009,,,,, +2,7010,,,,, +2,7011,,,,, 2,7031,,,,SaveDataPorterInvalidated, +2,7032,,,,, +2,7033,,,,, +2,7034,,,,, +2,7035,,,,, +2,7036,,,,, +2,7037,,,,, +2,7038,,,,, +2,7062,,,,InvalidKeyPackageMac, +2,7063,,,,KeyPackageSignatureVerificationFailed, +2,7064,,,,InvalidKeyPackageChallengeData, +2,7065,,,,UnsupportedKeyPackageKeyGeneration, +2,7066,,,,InvalidSaveDataRepairInitialDataContentGcmMac, +2,7069,,,,InvalidSaveDataRepairInitialDataCmac, +2,7070,,,,SaveDataRepairInitialDataAadMismatch,The before and after initial data have different AAD. +2,7071,,,,SaveDataRepairInitialDataSaveMismatch,The before and after initial data refer to different saves. + +2,7100,7139,,,RamDiskCorrupted, +2,7101,,,,, +2,7111,7119,,,RamDiskSaveDataCoreFileSystemCorrupted, +2,7112,,,,IncorrectRamDiskSaveDataControlAreaMagic, +2,7113,,,,InvalidRamDiskSaveDataFileReadOffset, +2,7114,,,,InvalidRamDiskSaveDataCoreDataStorageSize, + +2,7121,7139,,,RamDiskDatabaseCorrupted, +2,7122,,,,InvalidRamDiskAllocationTableBlock, +2,7123,,,,InvalidRamDiskKeyValueListElementIndex, +2,7124,,,,RamDiskAllocationTableIteratedRangeEntry, +2,7125,,,,InvalidRamDiskAllocationTableOffset, +2,7126,,,,InvalidRamDiskAllocationTableBlockCount, +2,7127,,,,InvalidRamDiskKeyValueListEntryIndex, + +2,7142,,,,, + +2,7900,,,,Unknown, 2,7901,7904,,,DbmNotFound, 2,7902,,,,DbmKeyNotFound, 2,7903,,,,DbmFileNotFound, diff --git a/src/LibHac/Common/HResult.cs b/src/LibHac/Common/HResult.cs index 879c1245..5b834ae6 100644 --- a/src/LibHac/Common/HResult.cs +++ b/src/LibHac/Common/HResult.cs @@ -35,7 +35,7 @@ namespace LibHac.Common ERROR_ALREADY_EXISTS => ResultFs.PathAlreadyExists.Value, ERROR_DIRECTORY => ResultFs.PathNotFound.Value, ERROR_SPACES_NOT_ENOUGH_DRIVES => ResultFs.UsableSpaceNotEnough.Value, - _ => ResultFs.UnknownHostFileSystemError.Value + _ => ResultFs.UnexpectedInLocalFileSystemE.Value }; } } diff --git a/src/LibHac/Fs/ResultFs.cs b/src/LibHac/Fs/ResultFs.cs index 9875c198..69b4756e 100644 --- a/src/LibHac/Fs/ResultFs.cs +++ b/src/LibHac/Fs/ResultFs.cs @@ -34,6 +34,10 @@ namespace LibHac.Fs public static Result.Base UsableSpaceNotEnough => new Result.Base(ModuleFs, 30, 45); /// Error code: 2002-0031; Inner value: 0x3e02 public static Result.Base UsableSpaceNotEnoughForSaveData => new Result.Base(ModuleFs, 31); + /// Error code: 2002-0032; Inner value: 0x4002 + public static Result.Base UsableSpaceNotEnoughAfterDataErase => new Result.Base(ModuleFs, 32); + /// Error code: 2002-0033; Inner value: 0x4202 + public static Result.Base UsableSpaceNotEnoughForCacheStorage => new Result.Base(ModuleFs, 33); /// Error code: 2002-0034; Range: 34-38; Inner value: 0x4402 public static Result.Base UsableSpaceNotEnoughForBis => new Result.Base(ModuleFs, 34, 38); @@ -53,6 +57,8 @@ namespace LibHac.Fs public static Result.Base UnsupportedSdkVersion => new Result.Base(ModuleFs, 50); /// Error code: 2002-0060; Inner value: 0x7802 public static Result.Base MountNameAlreadyExists => new Result.Base(ModuleFs, 60); + /// Error code: 2002-0070; Inner value: 0x8c02 + public static Result.Base IndividualFileDataCacheAlreadyEnabled => new Result.Base(ModuleFs, 70); /// Error code: 2002-1000; Range: 1000-2999; Inner value: 0x7d002 public static Result.Base HandledBySystemProcess { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 1000, 2999); } @@ -223,27 +229,234 @@ namespace LibHac.Fs public static Result.Base PortSdCardNotSupported => new Result.Base(ModuleFs, 2200); /// Error code: 2002-2201; Inner value: 0x113202 public static Result.Base PortSdCardNotImplemented => new Result.Base(ModuleFs, 2201); + /// Error code: 2002-2496; Inner value: 0x138002 + public static Result.Base SdCardStorageDeviceInvalidated => new Result.Base(ModuleFs, 2496); + /// Error code: 2002-2497; Inner value: 0x138202 + public static Result.Base SdCardFormatWriteVerificationFailed => new Result.Base(ModuleFs, 2497); /// Error code: 2002-2498; Inner value: 0x138402 public static Result.Base SdCardFileSystemInvalidatedByRemoved => new Result.Base(ModuleFs, 2498); + /// Error code: 2002-2499; Inner value: 0x138602 + public static Result.Base SdCardDeviceUnknownError => new Result.Base(ModuleFs, 2499); /// Error code: 2002-2500; Range: 2500-2999; Inner value: 0x138802 public static Result.Base GameCardAccessFailed { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 2500, 2999); } /// Error code: 2002-2503; Inner value: 0x138e02 - public static Result.Base InvalidBufferForGameCard => new Result.Base(ModuleFs, 2503); + public static Result.Base GameCardPreconditionViolation => new Result.Base(ModuleFs, 2503); + /// Error code: 2002-2504; Inner value: 0x139002 + public static Result.Base GameCardNotImplemented => new Result.Base(ModuleFs, 2504); + /// Error code: 2002-2510; Inner value: 0x139c02 + public static Result.Base GameCardNoAvailableLockers => new Result.Base(ModuleFs, 2510); + /// Error code: 2002-2511; Inner value: 0x139e02 + public static Result.Base GameCardLockerIndexOutOfRange => new Result.Base(ModuleFs, 2511); /// Error code: 2002-2520; Inner value: 0x13b002 public static Result.Base GameCardNotInserted => new Result.Base(ModuleFs, 2520); + /// Error code: 2002-2521; Inner value: 0x13b202 + public static Result.Base InvalidGameCardIdInSpecificData => new Result.Base(ModuleFs, 2521); + /// Error code: 2002-2522; Inner value: 0x13b402 + public static Result.Base GameCardCardNotActivated => new Result.Base(ModuleFs, 2522); + /// Error code: 2002-2523; Inner value: 0x13b602 + public static Result.Base InvalidCommandForDeactivatedGameCardAsic => new Result.Base(ModuleFs, 2523); /// Error code: 2002-2531; Inner value: 0x13c602 public static Result.Base GameCardCardAccessTimeout => new Result.Base(ModuleFs, 2531); + /// Error code: 2002-2532; Inner value: 0x13c802 + public static Result.Base GameCardStatusFatalError => new Result.Base(ModuleFs, 2532); + /// Error code: 2002-2533; Inner value: 0x13ca02 + public static Result.Base GameCardReadFailure => new Result.Base(ModuleFs, 2533); + /// Error code: 2002-2536; Inner value: 0x13d002 + public static Result.Base GameCardRetryLimitHit => new Result.Base(ModuleFs, 2536); + /// Error code: 2002-2537; Inner value: 0x13d202 + public static Result.Base GameCardStatusRefreshRequested => new Result.Base(ModuleFs, 2537); + /// Error code: 2002-2538; Inner value: 0x13d402 + public static Result.Base GameCardStatusCrcErrorAndRefreshRequested => new Result.Base(ModuleFs, 2538); + /// Error code: 2002-2540; Inner value: 0x13d802 + public static Result.Base InvalidSecureAccess => new Result.Base(ModuleFs, 2540); + /// Error code: 2002-2541; Inner value: 0x13da02 + public static Result.Base InvalidNormalAccess => new Result.Base(ModuleFs, 2541); + /// Error code: 2002-2542; Inner value: 0x13dc02 + public static Result.Base InvalidAccessAcrossMode => new Result.Base(ModuleFs, 2542); + + /// Error code: 2002-2543; Range: 2543-2546; Inner value: 0x13de02 + public static Result.Base GameCardWrongCard { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 2543, 2546); } + /// Error code: 2002-2544; Inner value: 0x13e002 + public static Result.Base InvalidGameCardInitialDataHash => new Result.Base(ModuleFs, 2544); + /// Error code: 2002-2545; Inner value: 0x13e202 + public static Result.Base InvalidGameCardInitialDataReservedArea => new Result.Base(ModuleFs, 2545); + /// Error code: 2002-2546; Inner value: 0x13e402 + public static Result.Base InvalidGameCardCertificateKekIndex => new Result.Base(ModuleFs, 2546); + + /// Error code: 2002-2548; Inner value: 0x13e802 + public static Result.Base InvalidGameCardModeForGetCardDeviceCertificate => new Result.Base(ModuleFs, 2548); + /// Error code: 2002-2549; Inner value: 0x13ea02 + public static Result.Base NotSupportedForGameCardSecurityMode => new Result.Base(ModuleFs, 2549); + /// Error code: 2002-2550; Inner value: 0x13ec02 + public static Result.Base Result2550 => new Result.Base(ModuleFs, 2550); + /// Error code: 2002-2551; Inner value: 0x13ee02 + public static Result.Base GameCardReadHeaderTryTimeoutForActivation => new Result.Base(ModuleFs, 2551); + /// Error code: 2002-2552; Inner value: 0x13f002 + public static Result.Base Result2552 => new Result.Base(ModuleFs, 2552); + /// Error code: 2002-2553; Inner value: 0x13f202 + public static Result.Base InvalidGameCardModeForGetChallengeCardExistence => new Result.Base(ModuleFs, 2553); + /// Error code: 2002-2554; Inner value: 0x13f402 + public static Result.Base InvalidGameCardHeader => new Result.Base(ModuleFs, 2554); + /// Error code: 2002-2555; Inner value: 0x13f602 + public static Result.Base InvalidGameCardCertificate => new Result.Base(ModuleFs, 2555); + /// Error code: 2002-2557; Inner value: 0x13fa02 + public static Result.Base Result2557 => new Result.Base(ModuleFs, 2557); + /// Error code: 2002-2558; Inner value: 0x13fc02 + public static Result.Base Result2558 => new Result.Base(ModuleFs, 2558); + + /// Error code: 2002-2565; Range: 2565-2595; Inner value: 0x140a02 + public static Result.Base GameCardCommunicationFailure { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 2565, 2595); } + + /// Error code: 2002-2599; Inner value: 0x144e02 + public static Result.Base GameCardInvalidStateTransition => new Result.Base(ModuleFs, 2599); + /// Error code: 2002-2600; Inner value: 0x145002 + public static Result.Base GameCardAsicInvalidTransitionToNormalMode => new Result.Base(ModuleFs, 2600); + /// Error code: 2002-2601; Inner value: 0x145202 + public static Result.Base GameCardAsicInvalidTransitionToSecureMode => new Result.Base(ModuleFs, 2601); + /// Error code: 2002-2602; Inner value: 0x145402 + public static Result.Base GameCardAsicInvalidTransitionToWriteMode => new Result.Base(ModuleFs, 2602); + /// Error code: 2002-2629; Inner value: 0x148a02 + public static Result.Base GameCardAsicInitializationFailureForWriterFirmware => new Result.Base(ModuleFs, 2629); + + /// Error code: 2002-2630; Range: 2630-2669; Inner value: 0x148c02 + public static Result.Base GameCardAsicInitializationFailure { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 2630, 2669); } + /// Error code: 2002-2631; Inner value: 0x148e02 + public static Result.Base GameCardAsicGetDeviceStatusFailure => new Result.Base(ModuleFs, 2631); + /// Error code: 2002-2632; Inner value: 0x149002 + public static Result.Base GameCardAsicActivationFailure => new Result.Base(ModuleFs, 2632); + /// Error code: 2002-2634; Inner value: 0x149402 + public static Result.Base GameCardAsicSetUserAsicFirmwareFailure => new Result.Base(ModuleFs, 2634); + /// Error code: 2002-2637; Inner value: 0x149a02 + public static Result.Base GameCardAsicGetAsicCertFailure => new Result.Base(ModuleFs, 2637); + /// Error code: 2002-2638; Inner value: 0x149c02 + public static Result.Base GameCardParseCertificateFailure => new Result.Base(ModuleFs, 2638); + /// Error code: 2002-2639; Inner value: 0x149e02 + public static Result.Base InvalidGameCardAsicCertificate => new Result.Base(ModuleFs, 2639); + /// Error code: 2002-2640; Inner value: 0x14a002 + public static Result.Base GameCardAsicSetEmmcEmbeddedSocCertificateFailure => new Result.Base(ModuleFs, 2640); + /// Error code: 2002-2645; Inner value: 0x14aa02 + public static Result.Base GameCardAsicGetAsicEncryptedMessageFailure => new Result.Base(ModuleFs, 2645); + /// Error code: 2002-2646; Inner value: 0x14ac02 + public static Result.Base GameCardAsicSetLibraryEncryptedMessageFailure => new Result.Base(ModuleFs, 2646); + /// Error code: 2002-2651; Inner value: 0x14b602 + public static Result.Base GameCardAsicGetAsicAuthenticationDataFailure => new Result.Base(ModuleFs, 2651); + /// Error code: 2002-2652; Inner value: 0x14b802 + public static Result.Base GameCardAsicSetAsicAuthenticationDataHashFailure => new Result.Base(ModuleFs, 2652); + /// Error code: 2002-2653; Inner value: 0x14ba02 + public static Result.Base GameCardAsicSetLibraryAuthenticationDataFailure => new Result.Base(ModuleFs, 2653); + /// Error code: 2002-2654; Inner value: 0x14bc02 + public static Result.Base GameCardAsicGetLibraryAuthenticationDataHashFailure => new Result.Base(ModuleFs, 2654); + /// Error code: 2002-2655; Inner value: 0x14be02 + public static Result.Base GameCardInvalidLibraryAuthenticationDataHash => new Result.Base(ModuleFs, 2655); + /// Error code: 2002-2658; Inner value: 0x14c402 + public static Result.Base GameCardAsicEnterSecureAsicModeFailure => new Result.Base(ModuleFs, 2658); + /// Error code: 2002-2659; Inner value: 0x14c602 + public static Result.Base GameCardAsicExchangeRandomValuesInSecureModeFailure => new Result.Base(ModuleFs, 2659); + /// Error code: 2002-2660; Inner value: 0x14c802 + public static Result.Base GameCardAsicChallengeCardExistenceFailure => new Result.Base(ModuleFs, 2660); + /// Error code: 2002-2663; Inner value: 0x14ce02 + public static Result.Base GameCardAsicActivationTimeout => new Result.Base(ModuleFs, 2663); + + /// Error code: 2002-2665; Range: 2665-2669; Inner value: 0x14d202 + public static Result.Base GameCardSplFailure { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 2665, 2669); } + /// Error code: 2002-2666; Inner value: 0x14d402 + public static Result.Base GameCardSplDecryptAesKeyFailure => new Result.Base(ModuleFs, 2666); + /// Error code: 2002-2667; Inner value: 0x14d602 + public static Result.Base GameCardSplDecryptAndStoreGcKeyFailure => new Result.Base(ModuleFs, 2667); + /// Error code: 2002-2668; Inner value: 0x14d802 + public static Result.Base GameCardSplGenerateRandomBytesFailure => new Result.Base(ModuleFs, 2668); + /// Error code: 2002-2669; Inner value: 0x14da02 + public static Result.Base GameCardSplDecryptGcMessageFailure => new Result.Base(ModuleFs, 2669); + + /// Error code: 2002-2671; Inner value: 0x14de02 + public static Result.Base GameCardAsicReadAsicRegisterFailure => new Result.Base(ModuleFs, 2671); + /// Error code: 2002-2672; Inner value: 0x14e002 + public static Result.Base GameCardAsicWriteAsicRegisterFailure => new Result.Base(ModuleFs, 2672); + /// Error code: 2002-2673; Inner value: 0x14e202 + public static Result.Base GameCardAsicEnableCardBusFailure => new Result.Base(ModuleFs, 2673); + /// Error code: 2002-2674; Inner value: 0x14e402 + public static Result.Base GameCardAsicGetCardHeaderFailure => new Result.Base(ModuleFs, 2674); + /// Error code: 2002-2675; Inner value: 0x14e602 + public static Result.Base GameCardAsicStatusError => new Result.Base(ModuleFs, 2675); + /// Error code: 2002-2676; Inner value: 0x14e802 + public static Result.Base GameCardAsicGetCardKeyAreaFailure => new Result.Base(ModuleFs, 2676); + /// Error code: 2002-2677; Inner value: 0x14ea02 + public static Result.Base GameCardAsicChangeDebugModeFailure => new Result.Base(ModuleFs, 2677); + /// Error code: 2002-2678; Inner value: 0x14ec02 + public static Result.Base GameCardAsicGetRmaInformationFailure => new Result.Base(ModuleFs, 2678); + /// Error code: 2002-2680; Inner value: 0x14f002 + public static Result.Base GameCardAsicStatusBit22Set => new Result.Base(ModuleFs, 2680); + /// Error code: 2002-2681; Inner value: 0x14f202 + public static Result.Base GameCardSecureValuesNotInitialized => new Result.Base(ModuleFs, 2681); + /// Error code: 2002-2692; Inner value: 0x150802 + public static Result.Base InvalidSecureGameCardCommand => new Result.Base(ModuleFs, 2692); + /// Error code: 2002-2693; Inner value: 0x150a02 + public static Result.Base InvalidWriteGameCardCommand => new Result.Base(ModuleFs, 2693); + /// Error code: 2002-2703; Inner value: 0x151e02 + public static Result.Base GameCardSetVoltageFailure => new Result.Base(ModuleFs, 2703); + /// Error code: 2002-2731; Inner value: 0x155602 + public static Result.Base GameCardCommandReadId1Failure => new Result.Base(ModuleFs, 2731); + /// Error code: 2002-2732; Inner value: 0x155802 + public static Result.Base GameCardCommandReadId2Failure => new Result.Base(ModuleFs, 2732); + /// Error code: 2002-2733; Inner value: 0x155a02 + public static Result.Base GameCardCommandReadId3Failure => new Result.Base(ModuleFs, 2733); + /// Error code: 2002-2735; Inner value: 0x155e02 + public static Result.Base GameCardCommandReadPageFailure => new Result.Base(ModuleFs, 2735); + /// Error code: 2002-2736; Inner value: 0x156002 + public static Result.Base GameCardCommandReadPageUnalignedFailure => new Result.Base(ModuleFs, 2736); + /// Error code: 2002-2737; Inner value: 0x156202 + public static Result.Base GameCardCommandWritePageFailure => new Result.Base(ModuleFs, 2737); + /// Error code: 2002-2738; Inner value: 0x156402 + public static Result.Base GameCardCommandRefreshFailure => new Result.Base(ModuleFs, 2738); + /// Error code: 2002-2739; Inner value: 0x156602 + public static Result.Base GameCardCommandUpdateKeyFailure => new Result.Base(ModuleFs, 2739); + /// Error code: 2002-2742; Inner value: 0x156c02 + public static Result.Base GameCardCommandReadCrcFailure => new Result.Base(ModuleFs, 2742); + /// Error code: 2002-2743; Inner value: 0x156e02 + public static Result.Base GameCardCommandEraseFailure => new Result.Base(ModuleFs, 2743); + /// Error code: 2002-2744; Inner value: 0x157002 + public static Result.Base GameCardCommandReadDevParamFailure => new Result.Base(ModuleFs, 2744); + /// Error code: 2002-2745; Inner value: 0x157202 + public static Result.Base GameCardCommandWriteDevParamFailure => new Result.Base(ModuleFs, 2745); + /// Error code: 2002-2901; Inner value: 0x16aa02 + public static Result.Base GameCardParameterError => new Result.Base(ModuleFs, 2901); + /// Error code: 2002-2902; Inner value: 0x16ac02 + public static Result.Base Result2902 => new Result.Base(ModuleFs, 2902); + /// Error code: 2002-2903; Inner value: 0x16ae02 + public static Result.Base Result2903 => new Result.Base(ModuleFs, 2903); + /// Error code: 2002-2904; Inner value: 0x16b002 + public static Result.Base Result2904 => new Result.Base(ModuleFs, 2904); + /// Error code: 2002-2905; Inner value: 0x16b202 + public static Result.Base Result2905 => new Result.Base(ModuleFs, 2905); + /// Error code: 2002-2906; Inner value: 0x16b402 + public static Result.Base Result2906 => new Result.Base(ModuleFs, 2906); + /// Error code: 2002-2950; Inner value: 0x170c02 + public static Result.Base InvalidGameCardStorageAttribute => new Result.Base(ModuleFs, 2950); /// Error code: 2002-2951; Inner value: 0x170e02 public static Result.Base GameCardNotInsertedOnGetHandle => new Result.Base(ModuleFs, 2951); /// Error code: 2002-2952; Inner value: 0x171002 public static Result.Base InvalidGameCardHandleOnRead => new Result.Base(ModuleFs, 2952); /// Error code: 2002-2954; Inner value: 0x171402 public static Result.Base InvalidGameCardHandleOnGetCardInfo => new Result.Base(ModuleFs, 2954); + /// Error code: 2002-2955; Inner value: 0x171602 + public static Result.Base InvalidGameCardHandleOnGetGameCardDeviceCertificate => new Result.Base(ModuleFs, 2955); + /// Error code: 2002-2956; Inner value: 0x171802 + public static Result.Base InvalidGameCardHandleOnGetGameCardImageHash => new Result.Base(ModuleFs, 2956); + /// Error code: 2002-2957; Inner value: 0x171a02 + public static Result.Base InvalidGameCardHandleOnChallengeCardExistence => new Result.Base(ModuleFs, 2957); + /// Error code: 2002-2958; Inner value: 0x171c02 + public static Result.Base InvalidGameCardHandleOnOnAcquireLock => new Result.Base(ModuleFs, 2958); + /// Error code: 2002-2959; Inner value: 0x171e02 + public static Result.Base InvalidGameCardModeOnAcquireSecureLock => new Result.Base(ModuleFs, 2959); /// Error code: 2002-2960; Inner value: 0x172002 public static Result.Base InvalidGameCardHandleOnOpenNormalPartition => new Result.Base(ModuleFs, 2960); /// Error code: 2002-2961; Inner value: 0x172202 public static Result.Base InvalidGameCardHandleOnOpenSecurePartition => new Result.Base(ModuleFs, 2961); + /// Error code: 2002-2962; Inner value: 0x172402 + public static Result.Base InvalidGameCardCompatibilityType => new Result.Base(ModuleFs, 2962); + /// Error code: 2002-2963; Inner value: 0x172602 + public static Result.Base GameCardsNotSupportedOnDeviceModel => new Result.Base(ModuleFs, 2963); /// Error code: 2002-3000; Range: 3000-7999; Inner value: 0x177002 public static Result.Base Internal { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 3000, 7999); } @@ -255,6 +468,8 @@ namespace LibHac.Fs public static Result.Base SaveDataPathAlreadyExists => new Result.Base(ModuleFs, 3003); /// Error code: 2002-3005; Inner value: 0x177a02 public static Result.Base OutOfRange => new Result.Base(ModuleFs, 3005); + /// Error code: 2002-3099; Inner value: 0x183602 + public static Result.Base Result3099 => new Result.Base(ModuleFs, 3099); /// Error code: 2002-3100; Inner value: 0x183802 public static Result.Base SystemPartitionNotReady => new Result.Base(ModuleFs, 3100); /// Error code: 2002-3101; Inner value: 0x183a02 @@ -262,12 +477,26 @@ namespace LibHac.Fs /// Error code: 2002-3200; Range: 3200-3499; Inner value: 0x190002 public static Result.Base AllocationMemoryFailed { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 3200, 3499); } + /// Error code: 2002-3201; Inner value: 0x190202 + public static Result.Base AllocationMemoryFailedInPrFile2 => new Result.Base(ModuleFs, 3201); + /// Error code: 2002-3203; Inner value: 0x190602 + public static Result.Base AllocationMemoryFailedInFatFileSystemA => new Result.Base(ModuleFs, 3203); + /// Error code: 2002-3204; Inner value: 0x190802 + public static Result.Base AllocationMemoryFailedInFatFileSystemB => new Result.Base(ModuleFs, 3204); + /// Error code: 2002-3205; Inner value: 0x190a02 + public static Result.Base AllocationMemoryFailedInFatFileSystemC => new Result.Base(ModuleFs, 3205); + /// Error code: 2002-3206; Inner value: 0x190c02 + public static Result.Base AllocationMemoryFailedInFatFileSystemD => new Result.Base(ModuleFs, 3206); + /// Error code: 2002-3208; Inner value: 0x191002 + public static Result.Base AllocationMemoryFailedInFatFileSystemE => new Result.Base(ModuleFs, 3208); /// Error code: 2002-3211; Inner value: 0x191602 public static Result.Base AllocationMemoryFailedInFileSystemAccessorA => new Result.Base(ModuleFs, 3211); /// Error code: 2002-3212; Inner value: 0x191802 public static Result.Base AllocationMemoryFailedInFileSystemAccessorB => new Result.Base(ModuleFs, 3212); /// Error code: 2002-3213; Inner value: 0x191a02 public static Result.Base AllocationMemoryFailedInApplicationA => new Result.Base(ModuleFs, 3213); + /// Error code: 2002-3214; Inner value: 0x191c02 + public static Result.Base AllocationMemoryFailedInBcatSaveDataA => new Result.Base(ModuleFs, 3214); /// Error code: 2002-3215; Inner value: 0x191e02 public static Result.Base AllocationMemoryFailedInBisA => new Result.Base(ModuleFs, 3215); /// Error code: 2002-3216; Inner value: 0x192002 @@ -296,8 +525,32 @@ namespace LibHac.Fs public static Result.Base AllocationMemoryFailedInGameCardC => new Result.Base(ModuleFs, 3227); /// Error code: 2002-3228; Inner value: 0x193802 public static Result.Base AllocationMemoryFailedInGameCardD => new Result.Base(ModuleFs, 3228); + /// Error code: 2002-3229; Inner value: 0x193a02 + public static Result.Base AllocationMemoryFailedInHostA => new Result.Base(ModuleFs, 3229); + /// Error code: 2002-3230; Inner value: 0x193c02 + public static Result.Base AllocationMemoryFailedInHostB => new Result.Base(ModuleFs, 3230); + /// Error code: 2002-3231; Inner value: 0x193e02 + public static Result.Base AllocationMemoryFailedInHostC => new Result.Base(ModuleFs, 3231); /// Error code: 2002-3232; Inner value: 0x194002 public static Result.Base AllocationMemoryFailedInImageDirectoryA => new Result.Base(ModuleFs, 3232); + /// Error code: 2002-3233; Inner value: 0x194202 + public static Result.Base AllocationMemoryFailedInLogoA => new Result.Base(ModuleFs, 3233); + /// Error code: 2002-3234; Inner value: 0x194402 + public static Result.Base AllocationMemoryFailedInRomA => new Result.Base(ModuleFs, 3234); + /// Error code: 2002-3235; Inner value: 0x194602 + public static Result.Base AllocationMemoryFailedInRomB => new Result.Base(ModuleFs, 3235); + /// Error code: 2002-3236; Inner value: 0x194802 + public static Result.Base AllocationMemoryFailedInRomC => new Result.Base(ModuleFs, 3236); + /// Error code: 2002-3237; Inner value: 0x194a02 + public static Result.Base AllocationMemoryFailedInRomD => new Result.Base(ModuleFs, 3237); + /// Error code: 2002-3238; Inner value: 0x194c02 + public static Result.Base AllocationMemoryFailedInRomE => new Result.Base(ModuleFs, 3238); + /// Error code: 2002-3239; Inner value: 0x194e02 + public static Result.Base AllocationMemoryFailedInRomF => new Result.Base(ModuleFs, 3239); + /// Error code: 2002-3242; Inner value: 0x195402 + public static Result.Base AllocationMemoryFailedInSaveDataManagementA => new Result.Base(ModuleFs, 3242); + /// Error code: 2002-3243; Inner value: 0x195602 + public static Result.Base AllocationMemoryFailedInSaveDataThumbnailA => new Result.Base(ModuleFs, 3243); /// Error code: 2002-3244; Inner value: 0x195802 public static Result.Base AllocationMemoryFailedInSdCardA => new Result.Base(ModuleFs, 3244); /// Error code: 2002-3245; Inner value: 0x195a02 @@ -310,22 +563,88 @@ namespace LibHac.Fs public static Result.Base AllocationMemoryFailedInRomFsFileSystemB => new Result.Base(ModuleFs, 3248); /// Error code: 2002-3249; Inner value: 0x196202 public static Result.Base AllocationMemoryFailedInRomFsFileSystemC => new Result.Base(ModuleFs, 3249); + /// Error code: 2002-3251; Inner value: 0x196602 + public static Result.Base AllocationMemoryFailedInGuidPartitionTableA => new Result.Base(ModuleFs, 3251); + /// Error code: 2002-3252; Inner value: 0x196802 + public static Result.Base AllocationMemoryFailedInDeviceDetectionEventManagerA => new Result.Base(ModuleFs, 3252); + /// Error code: 2002-3253; Inner value: 0x196a02 + public static Result.Base AllocationMemoryFailedInSaveDataFileSystemServiceImplA => new Result.Base(ModuleFs, 3253); + /// Error code: 2002-3254; Inner value: 0x196c02 + public static Result.Base AllocationMemoryFailedInFileSystemProxyCoreImplB => new Result.Base(ModuleFs, 3254); + /// Error code: 2002-3255; Inner value: 0x196e02 + public static Result.Base AllocationMemoryFailedInSdCardProxyFileSystemCreatorA => new Result.Base(ModuleFs, 3255); /// In ParseNsp allocating FileStorageBasedFileSystem
Error code: 2002-3256; Inner value: 0x197002
public static Result.Base AllocationMemoryFailedInNcaFileSystemServiceImplA => new Result.Base(ModuleFs, 3256); /// In ParseNca allocating FileStorageBasedFileSystem
Error code: 2002-3257; Inner value: 0x197202
public static Result.Base AllocationMemoryFailedInNcaFileSystemServiceImplB => new Result.Base(ModuleFs, 3257); /// In RegisterProgram allocating ProgramInfoNode
Error code: 2002-3258; Inner value: 0x197402
public static Result.Base AllocationMemoryFailedInProgramRegistryManagerA => new Result.Base(ModuleFs, 3258); + /// Error code: 2002-3259; Inner value: 0x197602 + public static Result.Base AllocationMemoryFailedInSdmmcStorageServiceA => new Result.Base(ModuleFs, 3259); + /// Error code: 2002-3260; Inner value: 0x197802 + public static Result.Base AllocationMemoryFailedInBuiltInStorageCreatorA => new Result.Base(ModuleFs, 3260); + /// Error code: 2002-3261; Inner value: 0x197a02 + public static Result.Base AllocationMemoryFailedInBuiltInStorageCreatorB => new Result.Base(ModuleFs, 3261); + /// Error code: 2002-3262; Inner value: 0x197c02 + public static Result.Base AllocationMemoryFailedInBuiltInStorageCreatorC => new Result.Base(ModuleFs, 3262); /// In Initialize allocating ProgramInfoNode
Error code: 2002-3264; Inner value: 0x198002
- public static Result.Base AllocationMemoryFailedFatFileSystemA => new Result.Base(ModuleFs, 3264); + public static Result.Base AllocationMemoryFailedFatFileSystemWithBufferA => new Result.Base(ModuleFs, 3264); + /// Error code: 2002-3265; Inner value: 0x198202 + public static Result.Base AllocationMemoryFailedInFatFileSystemCreatorA => new Result.Base(ModuleFs, 3265); + /// Error code: 2002-3266; Inner value: 0x198402 + public static Result.Base AllocationMemoryFailedInFatFileSystemCreatorB => new Result.Base(ModuleFs, 3266); + /// Error code: 2002-3267; Inner value: 0x198602 + public static Result.Base AllocationMemoryFailedInGameCardFileSystemCreatorA => new Result.Base(ModuleFs, 3267); + /// Error code: 2002-3268; Inner value: 0x198802 + public static Result.Base AllocationMemoryFailedInGameCardFileSystemCreatorB => new Result.Base(ModuleFs, 3268); + /// Error code: 2002-3269; Inner value: 0x198a02 + public static Result.Base AllocationMemoryFailedInGameCardFileSystemCreatorC => new Result.Base(ModuleFs, 3269); + /// Error code: 2002-3270; Inner value: 0x198c02 + public static Result.Base AllocationMemoryFailedInGameCardFileSystemCreatorD => new Result.Base(ModuleFs, 3270); + /// Error code: 2002-3271; Inner value: 0x198e02 + public static Result.Base AllocationMemoryFailedInGameCardFileSystemCreatorE => new Result.Base(ModuleFs, 3271); + /// Error code: 2002-3272; Inner value: 0x199002 + public static Result.Base AllocationMemoryFailedInGameCardFileSystemCreatorF => new Result.Base(ModuleFs, 3272); + /// Error code: 2002-3273; Inner value: 0x199202 + public static Result.Base AllocationMemoryFailedInGameCardManagerA => new Result.Base(ModuleFs, 3273); + /// Error code: 2002-3274; Inner value: 0x199402 + public static Result.Base AllocationMemoryFailedInGameCardManagerB => new Result.Base(ModuleFs, 3274); + /// Error code: 2002-3275; Inner value: 0x199602 + public static Result.Base AllocationMemoryFailedInGameCardManagerC => new Result.Base(ModuleFs, 3275); + /// Error code: 2002-3276; Inner value: 0x199802 + public static Result.Base AllocationMemoryFailedInGameCardManagerD => new Result.Base(ModuleFs, 3276); + /// Error code: 2002-3277; Inner value: 0x199a02 + public static Result.Base AllocationMemoryFailedInGameCardManagerE => new Result.Base(ModuleFs, 3277); + /// Error code: 2002-3278; Inner value: 0x199c02 + public static Result.Base AllocationMemoryFailedInGameCardManagerF => new Result.Base(ModuleFs, 3278); + /// Error code: 2002-3279; Inner value: 0x199e02 + public static Result.Base AllocationMemoryFailedInLocalFileSystemCreatorA => new Result.Base(ModuleFs, 3279); /// In Create allocating PartitionFileSystemCore
Error code: 2002-3280; Inner value: 0x19a002
public static Result.Base AllocationMemoryFailedInPartitionFileSystemCreatorA => new Result.Base(ModuleFs, 3280); /// Error code: 2002-3281; Inner value: 0x19a202 public static Result.Base AllocationMemoryFailedInRomFileSystemCreatorA => new Result.Base(ModuleFs, 3281); + /// Error code: 2002-3282; Inner value: 0x19a402 + public static Result.Base AllocationMemoryFailedInSaveDataFileSystemCreatorA => new Result.Base(ModuleFs, 3282); + /// Error code: 2002-3283; Inner value: 0x19a602 + public static Result.Base AllocationMemoryFailedInSaveDataFileSystemCreatorB => new Result.Base(ModuleFs, 3283); + /// Error code: 2002-3284; Inner value: 0x19a802 + public static Result.Base AllocationMemoryFailedInSaveDataFileSystemCreatorC => new Result.Base(ModuleFs, 3284); + /// Error code: 2002-3285; Inner value: 0x19aa02 + public static Result.Base AllocationMemoryFailedInSaveDataFileSystemCreatorD => new Result.Base(ModuleFs, 3285); + /// Error code: 2002-3286; Inner value: 0x19ac02 + public static Result.Base AllocationMemoryFailedInSaveDataFileSystemCreatorE => new Result.Base(ModuleFs, 3286); /// Error code: 2002-3288; Inner value: 0x19b002 public static Result.Base AllocationMemoryFailedInStorageOnNcaCreatorA => new Result.Base(ModuleFs, 3288); /// Error code: 2002-3289; Inner value: 0x19b202 public static Result.Base AllocationMemoryFailedInStorageOnNcaCreatorB => new Result.Base(ModuleFs, 3289); + /// Error code: 2002-3290; Inner value: 0x19b402 + public static Result.Base AllocationMemoryFailedInSubDirectoryFileSystemCreatorA => new Result.Base(ModuleFs, 3290); + /// Error code: 2002-3291; Inner value: 0x19b602 + public static Result.Base AllocationMemoryFailedInTargetManagerFileSystemCreatorA => new Result.Base(ModuleFs, 3291); + /// Error code: 2002-3292; Inner value: 0x19b802 + public static Result.Base AllocationMemoryFailedInSaveDataIndexerA => new Result.Base(ModuleFs, 3292); + /// Error code: 2002-3293; Inner value: 0x19ba02 + public static Result.Base AllocationMemoryFailedInSaveDataIndexerB => new Result.Base(ModuleFs, 3293); /// Error code: 2002-3294; Inner value: 0x19bc02 public static Result.Base AllocationMemoryFailedInFileSystemBuddyHeapA => new Result.Base(ModuleFs, 3294); /// Error code: 2002-3295; Inner value: 0x19be02 @@ -334,10 +653,20 @@ namespace LibHac.Fs public static Result.Base AllocationMemoryFailedInBlockCacheBufferedStorageA => new Result.Base(ModuleFs, 3296); /// Error code: 2002-3297; Inner value: 0x19c202 public static Result.Base AllocationMemoryFailedInBlockCacheBufferedStorageB => new Result.Base(ModuleFs, 3297); + /// Error code: 2002-3298; Inner value: 0x19c402 + public static Result.Base AllocationMemoryFailedInDuplexStorageA => new Result.Base(ModuleFs, 3298); /// Error code: 2002-3304; Inner value: 0x19d002 public static Result.Base AllocationMemoryFailedInIntegrityVerificationStorageA => new Result.Base(ModuleFs, 3304); /// Error code: 2002-3305; Inner value: 0x19d202 public static Result.Base AllocationMemoryFailedInIntegrityVerificationStorageB => new Result.Base(ModuleFs, 3305); + /// Error code: 2002-3306; Inner value: 0x19d402 + public static Result.Base AllocationMemoryFailedInJournalStorageA => new Result.Base(ModuleFs, 3306); + /// Error code: 2002-3307; Inner value: 0x19d602 + public static Result.Base AllocationMemoryFailedInJournalStorageB => new Result.Base(ModuleFs, 3307); + /// Error code: 2002-3310; Inner value: 0x19dc02 + public static Result.Base AllocationMemoryFailedInSaveDataFileSystemCoreA => new Result.Base(ModuleFs, 3310); + /// Error code: 2002-3311; Inner value: 0x19de02 + public static Result.Base AllocationMemoryFailedInSaveDataFileSystemCoreB => new Result.Base(ModuleFs, 3311); /// In Initialize allocating FileStorage
Error code: 2002-3312; Inner value: 0x19e002
public static Result.Base AllocationMemoryFailedInAesXtsFileA => new Result.Base(ModuleFs, 3312); /// In Initialize allocating AesXtsStorage
Error code: 2002-3313; Inner value: 0x19e202
@@ -346,8 +675,18 @@ namespace LibHac.Fs public static Result.Base AllocationMemoryFailedInAesXtsFileC => new Result.Base(ModuleFs, 3314); /// In Initialize allocating StorageFile
Error code: 2002-3315; Inner value: 0x19e602
public static Result.Base AllocationMemoryFailedInAesXtsFileD => new Result.Base(ModuleFs, 3315); + /// Error code: 2002-3316; Inner value: 0x19e802 + public static Result.Base AllocationMemoryFailedInAesXtsFileSystemA => new Result.Base(ModuleFs, 3316); + /// Error code: 2002-3319; Inner value: 0x19ee02 + public static Result.Base AllocationMemoryFailedInConcatenationFileSystemA => new Result.Base(ModuleFs, 3319); + /// Error code: 2002-3320; Inner value: 0x19f002 + public static Result.Base AllocationMemoryFailedInConcatenationFileSystemB => new Result.Base(ModuleFs, 3320); /// Error code: 2002-3321; Inner value: 0x19f202 - public static Result.Base AllocationMemoryFailedInDirectorySaveDataFileSystem => new Result.Base(ModuleFs, 3321); + public static Result.Base AllocationMemoryFailedInDirectorySaveDataFileSystemA => new Result.Base(ModuleFs, 3321); + /// Error code: 2002-3322; Inner value: 0x19f402 + public static Result.Base AllocationMemoryFailedInLocalFileSystemA => new Result.Base(ModuleFs, 3322); + /// Error code: 2002-3323; Inner value: 0x19f602 + public static Result.Base AllocationMemoryFailedInLocalFileSystemB => new Result.Base(ModuleFs, 3323); /// Error code: 2002-3341; Inner value: 0x1a1a02 public static Result.Base AllocationMemoryFailedInNcaFileSystemDriverI => new Result.Base(ModuleFs, 3341); /// In Initialize allocating PartitionFileSystemMetaCore
Error code: 2002-3347; Inner value: 0x1a2602
@@ -364,6 +703,16 @@ namespace LibHac.Fs public static Result.Base AllocationMemoryFailedInRomFsFileSystemD => new Result.Base(ModuleFs, 3352); /// In Initialize allocating RootPathBuffer
Error code: 2002-3355; Inner value: 0x1a3602
public static Result.Base AllocationMemoryFailedInSubdirectoryFileSystemA => new Result.Base(ModuleFs, 3355); + /// Error code: 2002-3356; Inner value: 0x1a3802 + public static Result.Base AllocationMemoryFailedInTmFileSystemA => new Result.Base(ModuleFs, 3356); + /// Error code: 2002-3357; Inner value: 0x1a3a02 + public static Result.Base AllocationMemoryFailedInTmFileSystemB => new Result.Base(ModuleFs, 3357); + /// Error code: 2002-3359; Inner value: 0x1a3e02 + public static Result.Base AllocationMemoryFailedInProxyFileSystemA => new Result.Base(ModuleFs, 3359); + /// Error code: 2002-3360; Inner value: 0x1a4002 + public static Result.Base AllocationMemoryFailedInProxyFileSystemB => new Result.Base(ModuleFs, 3360); + /// Error code: 2002-3362; Inner value: 0x1a4402 + public static Result.Base AllocationMemoryFailedInSaveDataExtraDataAccessorCacheManagerA => new Result.Base(ModuleFs, 3362); /// Error code: 2002-3363; Inner value: 0x1a4602 public static Result.Base AllocationMemoryFailedInNcaReaderA => new Result.Base(ModuleFs, 3363); /// Error code: 2002-3365; Inner value: 0x1a4a02 @@ -374,10 +723,26 @@ namespace LibHac.Fs public static Result.Base AllocationMemoryFailedInPathNormalizer => new Result.Base(ModuleFs, 3367); /// Error code: 2002-3375; Inner value: 0x1a5e02 public static Result.Base AllocationMemoryFailedInDbmRomKeyValueStorage => new Result.Base(ModuleFs, 3375); + /// Error code: 2002-3376; Inner value: 0x1a6002 + public static Result.Base AllocationMemoryFailedInDbmHierarchicalRomFileTable => new Result.Base(ModuleFs, 3376); /// Error code: 2002-3377; Inner value: 0x1a6202 public static Result.Base AllocationMemoryFailedInRomFsFileSystemE => new Result.Base(ModuleFs, 3377); + /// Error code: 2002-3378; Inner value: 0x1a6402 + public static Result.Base AllocationMemoryFailedInISaveFileSystemA => new Result.Base(ModuleFs, 3378); + /// Error code: 2002-3379; Inner value: 0x1a6602 + public static Result.Base AllocationMemoryFailedInISaveFileSystemB => new Result.Base(ModuleFs, 3379); + /// Error code: 2002-3380; Inner value: 0x1a6802 + public static Result.Base AllocationMemoryFailedInRomOnFileA => new Result.Base(ModuleFs, 3380); + /// Error code: 2002-3381; Inner value: 0x1a6a02 + public static Result.Base AllocationMemoryFailedInRomOnFileB => new Result.Base(ModuleFs, 3381); + /// Error code: 2002-3382; Inner value: 0x1a6c02 + public static Result.Base AllocationMemoryFailedInRomOnFileC => new Result.Base(ModuleFs, 3382); /// In Initialize
Error code: 2002-3383; Inner value: 0x1a6e02
public static Result.Base AllocationMemoryFailedInAesXtsFileE => new Result.Base(ModuleFs, 3383); + /// Error code: 2002-3384; Inner value: 0x1a7002 + public static Result.Base AllocationMemoryFailedInAesXtsFileSystemB => new Result.Base(ModuleFs, 3384); + /// Error code: 2002-3385; Inner value: 0x1a7202 + public static Result.Base AllocationMemoryFailedInAesXtsFileSystemC => new Result.Base(ModuleFs, 3385); /// Error code: 2002-3386; Inner value: 0x1a7402 public static Result.Base AllocationMemoryFailedInReadOnlyFileSystemA => new Result.Base(ModuleFs, 3386); /// In Create allocating AesXtsFileSystem
Error code: 2002-3394; Inner value: 0x1a8402
@@ -386,22 +751,42 @@ namespace LibHac.Fs public static Result.Base AllocationMemoryFailedInAesCtrCounterExtendedStorageA => new Result.Base(ModuleFs, 3399); /// Error code: 2002-3400; Inner value: 0x1a9002 public static Result.Base AllocationMemoryFailedInAesCtrCounterExtendedStorageB => new Result.Base(ModuleFs, 3400); - /// In OpenFile or OpenDirectory
Error code: 2002-3407; Inner value: 0x1a9e02
+ /// Error code: 2002-3406; Inner value: 0x1a9c02 + public static Result.Base AllocationMemoryFailedInSdmmcStorageServiceB => new Result.Base(ModuleFs, 3406); + /// In OpenFile or OpenDirectory
Error code: 2002-3407; Inner value: 0x1a9e02
public static Result.Base AllocationMemoryFailedInFileSystemInterfaceAdapter => new Result.Base(ModuleFs, 3407); + /// Error code: 2002-3408; Inner value: 0x1aa002 + public static Result.Base AllocationMemoryFailedInGameCardFileSystemCreatorG => new Result.Base(ModuleFs, 3408); + /// Error code: 2002-3409; Inner value: 0x1aa202 + public static Result.Base AllocationMemoryFailedInGameCardFileSystemCreatorH => new Result.Base(ModuleFs, 3409); /// Error code: 2002-3411; Inner value: 0x1aa602 public static Result.Base AllocationMemoryFailedInBufferedStorageA => new Result.Base(ModuleFs, 3411); /// Error code: 2002-3412; Inner value: 0x1aa802 public static Result.Base AllocationMemoryFailedInIntegrityRomFsStorageA => new Result.Base(ModuleFs, 3412); + /// Error code: 2002-3416; Inner value: 0x1ab002 + public static Result.Base AllocationMemoryFailedInSaveDataFileSystemServiceImplB => new Result.Base(ModuleFs, 3416); /// Error code: 2002-3420; Inner value: 0x1ab802 - public static Result.Base AllocationMemoryFailedInNew => new Result.Base(ModuleFs, 3420); + public static Result.Base AllocationMemoryFailedNew => new Result.Base(ModuleFs, 3420); /// Error code: 2002-3421; Inner value: 0x1aba02 - public static Result.Base AllocationMemoryFailedInCreateShared => new Result.Base(ModuleFs, 3421); + public static Result.Base AllocationMemoryFailedCreateShared => new Result.Base(ModuleFs, 3421); /// Error code: 2002-3422; Inner value: 0x1abc02 - public static Result.Base AllocationMemoryFailedInMakeUnique => new Result.Base(ModuleFs, 3422); + public static Result.Base AllocationMemoryFailedMakeUnique => new Result.Base(ModuleFs, 3422); /// Error code: 2002-3423; Inner value: 0x1abe02 - public static Result.Base AllocationMemoryFailedInAllocateShared => new Result.Base(ModuleFs, 3423); + public static Result.Base AllocationMemoryFailedAllocateShared => new Result.Base(ModuleFs, 3423); /// Error code: 2002-3424; Inner value: 0x1ac002 - public static Result.Base AllocationMemoryFailedPooledBufferNotEnoughSize => new Result.Base(ModuleFs, 3424); + public static Result.Base AllocationPooledBufferNotEnoughSize => new Result.Base(ModuleFs, 3424); + /// Error code: 2002-3428; Inner value: 0x1ac802 + public static Result.Base AllocationMemoryFailedInWriteThroughCacheStorageA => new Result.Base(ModuleFs, 3428); + /// Error code: 2002-3429; Inner value: 0x1aca02 + public static Result.Base AllocationMemoryFailedInSaveDataTransferManagerA => new Result.Base(ModuleFs, 3429); + /// Error code: 2002-3430; Inner value: 0x1acc02 + public static Result.Base AllocationMemoryFailedInSaveDataTransferManagerB => new Result.Base(ModuleFs, 3430); + /// Error code: 2002-3431; Inner value: 0x1ace02 + public static Result.Base AllocationMemoryFailedInHtcFileSystemA => new Result.Base(ModuleFs, 3431); + /// Error code: 2002-3432; Inner value: 0x1ad002 + public static Result.Base AllocationMemoryFailedInHtcFileSystemB => new Result.Base(ModuleFs, 3432); + /// Error code: 2002-3433; Inner value: 0x1ad202 + public static Result.Base AllocationMemoryFailedInGameCardManagerG => new Result.Base(ModuleFs, 3433); /// Error code: 2002-3500; Range: 3500-3999; Inner value: 0x1b5802 public static Result.Base MmcAccessFailed { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 3500, 3999); } @@ -561,6 +946,10 @@ namespace LibHac.Fs public static Result.Base PortMmcNotSupported => new Result.Base(ModuleFs, 3700); /// Error code: 2002-3701; Inner value: 0x1cea02 public static Result.Base PortMmcNotImplemented => new Result.Base(ModuleFs, 3701); + /// Error code: 2002-3998; Inner value: 0x1f3c02 + public static Result.Base Result3998 => new Result.Base(ModuleFs, 3998); + /// Error code: 2002-3999; Inner value: 0x1f3e02 + public static Result.Base PortMmcUnexpected => new Result.Base(ModuleFs, 3999); /// Error code: 2002-4000; Range: 4000-4999; Inner value: 0x1f4002 public static Result.Base DataCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4000, 4999); } @@ -579,6 +968,8 @@ namespace LibHac.Fs public static Result.Base InvalidAesCtrCounterExtendedGeneration => new Result.Base(ModuleFs, 4014); /// Error code: 2002-4015; Inner value: 0x1f5e02 public static Result.Base InvalidAesCtrCounterExtendedOffset => new Result.Base(ModuleFs, 4015); + /// Error code: 2002-4016; Inner value: 0x1f6002 + public static Result.Base Result4016 => new Result.Base(ModuleFs, 4016); /// Error code: 2002-4021; Range: 4021-4029; Inner value: 0x1f6a02 public static Result.Base IndirectStorageCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4021, 4029); } @@ -594,6 +985,8 @@ namespace LibHac.Fs public static Result.Base InvalidIndirectPhysicalOffset => new Result.Base(ModuleFs, 4026); /// Error code: 2002-4027; Inner value: 0x1f7602 public static Result.Base InvalidIndirectStorageIndex => new Result.Base(ModuleFs, 4027); + /// Error code: 2002-4028; Inner value: 0x1f7802 + public static Result.Base InvalidIndirectStorageBucketTreeSize => new Result.Base(ModuleFs, 4028); /// Error code: 2002-4031; Range: 4031-4039; Inner value: 0x1f7e02 public static Result.Base BucketTreeCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4031, 4039); } @@ -642,6 +1035,21 @@ namespace LibHac.Fs public static Result.Base InvalidRomNcaFsHeaderHashType => new Result.Base(ModuleFs, 4062); /// Error code: 2002-4063; Inner value: 0x1fbe02 public static Result.Base InvalidRomNcaFsHeaderEncryptionType => new Result.Base(ModuleFs, 4063); + /// Error code: 2002-4064; Inner value: 0x1fc002 + public static Result.Base InvalidRomNcaPatchInfoIndirectSize => new Result.Base(ModuleFs, 4064); + /// Error code: 2002-4065; Inner value: 0x1fc202 + public static Result.Base InvalidRomNcaPatchInfoAesCtrExSize => new Result.Base(ModuleFs, 4065); + /// Error code: 2002-4066; Inner value: 0x1fc402 + public static Result.Base InvalidRomNcaPatchInfoAesCtrExOffset => new Result.Base(ModuleFs, 4066); + /// Error code: 2002-4067; Inner value: 0x1fc602 + public static Result.Base InvalidRomNcaId => new Result.Base(ModuleFs, 4067); + /// Error code: 2002-4068; Inner value: 0x1fc802 + public static Result.Base InvalidRomNcaHeader => new Result.Base(ModuleFs, 4068); + /// Error code: 2002-4069; Inner value: 0x1fca02 + public static Result.Base InvalidRomNcaFsHeader => new Result.Base(ModuleFs, 4069); + + /// Error code: 2002-4070; Inner value: 0x1fcc02 + public static Result.Base InvalidRomNcaPatchInfoIndirectOffset => new Result.Base(ModuleFs, 4070); /// Error code: 2002-4071; Range: 4071-4079; Inner value: 0x1fce02 public static Result.Base RomNcaHierarchicalSha256StorageCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4071, 4079); } @@ -654,6 +1062,11 @@ namespace LibHac.Fs /// Error code: 2002-4075; Inner value: 0x1fd602 public static Result.Base RomHierarchicalSha256HashVerificationFailed => new Result.Base(ModuleFs, 4075); + /// Error code: 2002-4081; Inner value: 0x1fe202 + public static Result.Base InvalidRomHierarchicalIntegrityVerificationLayerCount => new Result.Base(ModuleFs, 4081); + /// Error code: 2002-4082; Inner value: 0x1fe402 + public static Result.Base RomNcaIndirectStorageOutOfRange => new Result.Base(ModuleFs, 4082); + /// Error code: 2002-4141; Range: 4141-4179; Inner value: 0x205a02 public static Result.Base RomIntegrityVerificationStorageCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4141, 4179); } /// Error code: 2002-4142; Inner value: 0x205c02 @@ -662,8 +1075,6 @@ namespace LibHac.Fs public static Result.Base InvalidRomZeroHash => new Result.Base(ModuleFs, 4143); /// Error code: 2002-4144; Inner value: 0x206002 public static Result.Base RomNonRealDataVerificationFailed => new Result.Base(ModuleFs, 4144); - /// Error code: 2002-4145; Inner value: 0x206202 - public static Result.Base InvalidRomHierarchicalIntegrityVerificationLayerCount => new Result.Base(ModuleFs, 4145); /// Error code: 2002-4151; Range: 4151-4159; Inner value: 0x206e02 public static Result.Base RomRealDataVerificationFailed { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4151, 4159); } @@ -710,29 +1121,114 @@ namespace LibHac.Fs /// Error code: 2002-4263; Inner value: 0x214e02 public static Result.Base InvalidRomKeyValueListElementIndex => new Result.Base(ModuleFs, 4263); + /// Returned directly when the header says the total size of the RomFs metadata is 0 bytes.
Error code: 2002-4280; Range: 4280-4284; Inner value: 0x217002
+ public static Result.Base RomStorageCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4280, 4284); } + /// The RomFs metadata is located beyond the end of the provided storage.
Error code: 2002-4281; Inner value: 0x217202
+ public static Result.Base InvalidRomStorageSize => new Result.Base(ModuleFs, 4281); + /// Error code: 2002-4301; Range: 4301-4499; Inner value: 0x219a02 public static Result.Base SaveDataCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4301, 4499); } /// Error code: 2002-4302; Inner value: 0x219c02 public static Result.Base UnsupportedSaveVersion => new Result.Base(ModuleFs, 4302); /// Error code: 2002-4303; Inner value: 0x219e02 public static Result.Base InvalidSaveDataEntryType => new Result.Base(ModuleFs, 4303); - /// Error code: 2002-4315; Inner value: 0x21b602 - public static Result.Base InvalidSaveDataHeader => new Result.Base(ModuleFs, 4315); - /// Error code: 2002-4362; Inner value: 0x221402 - public static Result.Base InvalidSaveDataIvfcMagic => new Result.Base(ModuleFs, 4362); - /// Error code: 2002-4363; Inner value: 0x221602 - public static Result.Base InvalidSaveDataIvfcHashValidationBit => new Result.Base(ModuleFs, 4363); - /// Error code: 2002-4364; Inner value: 0x221802 - public static Result.Base InvalidSaveDataIvfcHash => new Result.Base(ModuleFs, 4364); - /// Error code: 2002-4372; Inner value: 0x222802 - public static Result.Base EmptySaveDataIvfcHash => new Result.Base(ModuleFs, 4372); - /// Error code: 2002-4373; Inner value: 0x222a02 - public static Result.Base InvalidSaveDataHashInIvfcTopLayer => new Result.Base(ModuleFs, 4373); + + /// Error code: 2002-4311; Range: 4311-4319; Inner value: 0x21ae02 + public static Result.Base JournalIntegritySaveDataCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4311, 4319); } + /// Error code: 2002-4312; Inner value: 0x21b002 + public static Result.Base InvalidJournalIntegritySaveDataMasterDataSize => new Result.Base(ModuleFs, 4312); + /// Error code: 2002-4313; Inner value: 0x21b202 + public static Result.Base InconsistentJournalIntegritySaveDataCommitState => new Result.Base(ModuleFs, 4313); + /// Error code: 2002-4314; Inner value: 0x21b402 + public static Result.Base InvalidJournalIntegritySaveDataStorageSize => new Result.Base(ModuleFs, 4314); + /// Error code: 2002-4315; Inner value: 0x21b602 + public static Result.Base InvalidJournalIntegritySaveDataMasterHeader => new Result.Base(ModuleFs, 4315); + /// Error code: 2002-4316; Inner value: 0x21b802 + public static Result.Base InvalidJournalIntegritySaveDataSignature => new Result.Base(ModuleFs, 4316); + /// Error code: 2002-4317; Inner value: 0x21ba02 + public static Result.Base IncorrectJournalIntegritySaveDataLayoutHeaderMagic => new Result.Base(ModuleFs, 4317); + + /// Error code: 2002-4321; Range: 4321-4329; Inner value: 0x21c202 + public static Result.Base DuplexStorageCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4321, 4329); } + /// Error code: 2002-4322; Inner value: 0x21c402 + public static Result.Base IncorrectHierarchicalDuplexStorageControlAreaMagic => new Result.Base(ModuleFs, 4322); + /// Error code: 2002-4323; Inner value: 0x21c602 + public static Result.Base DuplexStorageAccessOutOfRange => new Result.Base(ModuleFs, 4323); + + /// Error code: 2002-4331; Range: 4331-4339; Inner value: 0x21d602 + public static Result.Base RemapStorageCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4331, 4339); } + /// Error code: 2002-4332; Inner value: 0x21d802 + public static Result.Base InvalidRemapStorageMapEntryCount => new Result.Base(ModuleFs, 4332); + /// Error code: 2002-4333; Inner value: 0x21da02 + public static Result.Base InvalidRemapStorageOffset => new Result.Base(ModuleFs, 4333); + /// Error code: 2002-4334; Inner value: 0x21dc02 + public static Result.Base InvalidRemapStorageSize => new Result.Base(ModuleFs, 4334); + /// Error code: 2002-4335; Inner value: 0x21de02 + public static Result.Base InvalidRemapStorageAlignment => new Result.Base(ModuleFs, 4335); + /// Error code: 2002-4336; Inner value: 0x21e002 + public static Result.Base InvalidRemapStorageStorageType => new Result.Base(ModuleFs, 4336); + /// The range of the new map entry overlaps with the range of an existing map entry.
Error code: 2002-4337; Inner value: 0x21e202
+ public static Result.Base InvalidRemapStorageNewMapEntryOffset => new Result.Base(ModuleFs, 4337); + /// The storage for the map entry's storage type hasn't been registered.
Error code: 2002-4338; Inner value: 0x21e402
+ public static Result.Base RemapStorageStorageNotRegistered => new Result.Base(ModuleFs, 4338); + /// The storage registered for the map entry's storage type is too short to contain the physical range specified in the map entry.
Error code: 2002-4339; Inner value: 0x21e602
+ public static Result.Base RemapStorageInvalidRegisteredStorageSize => new Result.Base(ModuleFs, 4339); + + /// Error code: 2002-4341; Range: 4341-4349; Inner value: 0x21ea02 + public static Result.Base UnionStorageCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4341, 4349); } + /// Error code: 2002-4342; Inner value: 0x21ec02 + public static Result.Base InvalidUnionStorageBlockSize => new Result.Base(ModuleFs, 4342); + /// Error code: 2002-4343; Inner value: 0x21ee02 + public static Result.Base InvalidUnionStorageLogOffsetAlignment => new Result.Base(ModuleFs, 4343); + /// Error code: 2002-4344; Inner value: 0x21f002 + public static Result.Base InvalidUnionStorageLogOffsetForCommit => new Result.Base(ModuleFs, 4344); + /// Error code: 2002-4345; Inner value: 0x21f202 + public static Result.Base InvalidUnionStorageLogOffset => new Result.Base(ModuleFs, 4345); + + /// Error code: 2002-4352; Inner value: 0x220002 + public static Result.Base InvalidSaveDataThumbnailHash => new Result.Base(ModuleFs, 4352); + /// Error code: 2002-4357; Inner value: 0x220a02 + public static Result.Base InvalidSaveDataInternalStorageIntegritySeedSize => new Result.Base(ModuleFs, 4357); + /// Error code: 2002-4358; Inner value: 0x220c02 + public static Result.Base Result4358 => new Result.Base(ModuleFs, 4358); + /// Error code: 2002-4359; Inner value: 0x220e02 + public static Result.Base Result4359 => new Result.Base(ModuleFs, 4359); + + /// Error code: 2002-4361; Range: 4361-4399; Inner value: 0x221202 + public static Result.Base SaveDataIntegrityVerificationStorageCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4361, 4399); } + /// Error code: 2002-4362; Inner value: 0x221402 + public static Result.Base IncorrectSaveDataIntegrityVerificationMagic => new Result.Base(ModuleFs, 4362); + /// Error code: 2002-4363; Inner value: 0x221602 + public static Result.Base InvalidSaveDataZeroHash => new Result.Base(ModuleFs, 4363); + /// Error code: 2002-4364; Inner value: 0x221802 + public static Result.Base SaveDataNonRealDataVerificationFailed => new Result.Base(ModuleFs, 4364); + /// Error code: 2002-4372; Inner value: 0x222802 + public static Result.Base ClearedSaveDataRealDataVerificationFailed => new Result.Base(ModuleFs, 4372); + /// Error code: 2002-4373; Inner value: 0x222a02 + public static Result.Base UnclearedSaveDataRealDataVerificationFailed => new Result.Base(ModuleFs, 4373); + /// Error code: 2002-4402; Inner value: 0x226402 public static Result.Base SaveDataInvalidGptPartitionSignature => new Result.Base(ModuleFs, 4402); + + /// Error code: 2002-4411; Range: 4411-4419; Inner value: 0x227602 + public static Result.Base SaveDataCoreFileSystemCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4411, 4419); } + /// Error code: 2002-4412; Inner value: 0x227802 + public static Result.Base IncorrectSaveDataControlAreaMagic => new Result.Base(ModuleFs, 4412); + /// Error code: 2002-4413; Inner value: 0x227a02 + public static Result.Base InvalidSaveDataFileReadOffset => new Result.Base(ModuleFs, 4413); + /// Error code: 2002-4414; Inner value: 0x227c02 + public static Result.Base InvalidSaveDataCoreDataStorageSize => new Result.Base(ModuleFs, 4414); + /// Error code: 2002-4427; Inner value: 0x229602 public static Result.Base IncompleteBlockInZeroBitmapHashStorageFileSaveData => new Result.Base(ModuleFs, 4427); + /// Error code: 2002-4431; Range: 4431-4439; Inner value: 0x229e02 + public static Result.Base JournalStorageCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4431, 4439); } + /// Error code: 2002-4432; Inner value: 0x22a002 + public static Result.Base JournalStorageAccessOutOfRange => new Result.Base(ModuleFs, 4432); + /// Error code: 2002-4433; Inner value: 0x22a202 + public static Result.Base InvalidJournalStorageDataStorageSize => new Result.Base(ModuleFs, 4433); + /// Error code: 2002-4441; Range: 4441-4459; Inner value: 0x22b202 public static Result.Base SaveDataHostFileSystemCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4441, 4459); } /// Error code: 2002-4442; Inner value: 0x22b402 @@ -744,12 +1240,55 @@ namespace LibHac.Fs /// Error code: 2002-4445; Inner value: 0x22ba02 public static Result.Base InvalidSaveDataHostHandle => new Result.Base(ModuleFs, 4445); - /// Error code: 2002-4462; Inner value: 0x22dc02 - public static Result.Base SaveDataAllocationTableCorrupted => new Result.Base(ModuleFs, 4462); - /// Error code: 2002-4463; Inner value: 0x22de02 - public static Result.Base SaveDataFileTableCorrupted => new Result.Base(ModuleFs, 4463); - /// Error code: 2002-4464; Inner value: 0x22e002 - public static Result.Base AllocationTableIteratedRangeEntry => new Result.Base(ModuleFs, 4464); + /// Error code: 2002-4451; Range: 4451-4459; Inner value: 0x22c602 + public static Result.Base MappingTableCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4451, 4459); } + /// Error code: 2002-4452; Inner value: 0x22c802 + public static Result.Base InvalidMappingTableEntryCount => new Result.Base(ModuleFs, 4452); + /// Error code: 2002-4453; Inner value: 0x22ca02 + public static Result.Base InvalidMappingTablePhysicalIndex => new Result.Base(ModuleFs, 4453); + /// Error code: 2002-4454; Inner value: 0x22cc02 + public static Result.Base InvalidMappingTableVirtualIndex => new Result.Base(ModuleFs, 4454); + + /// Error code: 2002-4461; Range: 4461-4479; Inner value: 0x22da02 + public static Result.Base SaveDataDatabaseCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4461, 4479); } + /// Error code: 2002-4462; Inner value: 0x22dc02 + public static Result.Base SaveDataAllocationTableCorrupted => new Result.Base(ModuleFs, 4462); + /// Error code: 2002-4463; Inner value: 0x22de02 + public static Result.Base InvalidSaveDataKeyValueListElementIndex => new Result.Base(ModuleFs, 4463); + /// Error code: 2002-4464; Inner value: 0x22e002 + public static Result.Base SaveDataAllocationTableIteratedRangeEntry => new Result.Base(ModuleFs, 4464); + /// Error code: 2002-4465; Inner value: 0x22e202 + public static Result.Base InvalidSaveDataAllocationTableOffset => new Result.Base(ModuleFs, 4465); + /// Error code: 2002-4466; Inner value: 0x22e402 + public static Result.Base InvalidSaveDataAllocationTableBlockCount => new Result.Base(ModuleFs, 4466); + /// Error code: 2002-4467; Inner value: 0x22e602 + public static Result.Base InvalidSaveDataKeyValueListEntryIndex => new Result.Base(ModuleFs, 4467); + /// Error code: 2002-4468; Inner value: 0x22e802 + public static Result.Base InvalidSaveDataBitmapIndex => new Result.Base(ModuleFs, 4468); + + /// Error code: 2002-4481; Range: 4481-4489; Inner value: 0x230202 + public static Result.Base SaveDataExtenderCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4481, 4489); } + /// Error code: 2002-4482; Inner value: 0x230402 + public static Result.Base IncorrectSaveDataExtensionContextMagic => new Result.Base(ModuleFs, 4482); + /// Error code: 2002-4483; Inner value: 0x230602 + public static Result.Base InvalidSaveDataExtensionContextState => new Result.Base(ModuleFs, 4483); + /// The extension context doesn't match the current save data.
Error code: 2002-4484; Inner value: 0x230802
+ public static Result.Base SaveDataExtensionContextMismatch => new Result.Base(ModuleFs, 4484); + /// Error code: 2002-4485; Inner value: 0x230a02 + public static Result.Base InvalidSaveDataExtenderSize => new Result.Base(ModuleFs, 4485); + + /// Error code: 2002-4491; Range: 4491-4499; Inner value: 0x231602 + public static Result.Base IntegritySaveDataCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4491, 4499); } + /// Error code: 2002-4492; Inner value: 0x231802 + public static Result.Base InvalidIntegritySaveDataMasterDataSize => new Result.Base(ModuleFs, 4492); + /// Error code: 2002-4494; Inner value: 0x231c02 + public static Result.Base InvalidIntegritySaveDataStorageSize => new Result.Base(ModuleFs, 4494); + /// Error code: 2002-4495; Inner value: 0x231e02 + public static Result.Base InvalidIntegritySaveDataMasterHeader => new Result.Base(ModuleFs, 4495); + /// Error code: 2002-4496; Inner value: 0x232002 + public static Result.Base InvalidIntegritySaveDataSignature => new Result.Base(ModuleFs, 4496); + /// Error code: 2002-4497; Inner value: 0x232202 + public static Result.Base IncorrectIntegritySaveDataLayoutHeaderMagic => new Result.Base(ModuleFs, 4497); /// Error code: 2002-4501; Range: 4501-4599; Inner value: 0x232a02 public static Result.Base NcaCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4501, 4599); } @@ -757,6 +1296,8 @@ namespace LibHac.Fs public static Result.Base NcaBaseStorageOutOfRangeA => new Result.Base(ModuleFs, 4508); /// Error code: 2002-4509; Inner value: 0x233a02 public static Result.Base NcaBaseStorageOutOfRangeB => new Result.Base(ModuleFs, 4509); + /// Error code: 2002-4510; Inner value: 0x233c02 + public static Result.Base NcaBaseStorageOutOfRangeC => new Result.Base(ModuleFs, 4510); /// Error code: 2002-4511; Range: 4511-4529; Inner value: 0x233e02 public static Result.Base NcaFileSystemCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4511, 4529); } @@ -797,6 +1338,9 @@ namespace LibHac.Fs /// Error code: 2002-4529; Inner value: 0x236202 public static Result.Base InvalidNcaFsHeader => new Result.Base(ModuleFs, 4529); + /// Error code: 2002-4530; Inner value: 0x236402 + public static Result.Base InvalidNcaPatchInfoIndirectOffset => new Result.Base(ModuleFs, 4530); + /// Error code: 2002-4531; Range: 4531-4539; Inner value: 0x236602 public static Result.Base NcaHierarchicalSha256StorageCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4531, 4539); } /// Error code: 2002-4532; Inner value: 0x236802 @@ -808,8 +1352,16 @@ namespace LibHac.Fs /// Error code: 2002-4535; Inner value: 0x236e02 public static Result.Base HierarchicalSha256HashVerificationFailed => new Result.Base(ModuleFs, 4535); + /// Error code: 2002-4541; Inner value: 0x237a02 + public static Result.Base InvalidHierarchicalIntegrityVerificationLayerCount => new Result.Base(ModuleFs, 4541); + /// Error code: 2002-4542; Inner value: 0x237c02 + public static Result.Base NcaIndirectStorageOutOfRange => new Result.Base(ModuleFs, 4542); /// Error code: 2002-4543; Inner value: 0x237e02 public static Result.Base InvalidNcaHeader1SignatureKeyGeneration => new Result.Base(ModuleFs, 4543); + /// Error code: 2002-4545; Inner value: 0x238202 + public static Result.Base InvalidNspdVerificationData => new Result.Base(ModuleFs, 4545); + /// Error code: 2002-4546; Inner value: 0x238402 + public static Result.Base MissingNspdVerificationData => new Result.Base(ModuleFs, 4546); /// Error code: 2002-4601; Range: 4601-4639; Inner value: 0x23f202 public static Result.Base IntegrityVerificationStorageCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4601, 4639); } @@ -819,8 +1371,6 @@ namespace LibHac.Fs public static Result.Base InvalidZeroHash => new Result.Base(ModuleFs, 4603); /// Error code: 2002-4604; Inner value: 0x23f802 public static Result.Base NonRealDataVerificationFailed => new Result.Base(ModuleFs, 4604); - /// Error code: 2002-4605; Inner value: 0x23fa02 - public static Result.Base InvalidHierarchicalIntegrityVerificationLayerCount => new Result.Base(ModuleFs, 4605); /// Error code: 2002-4611; Range: 4611-4619; Inner value: 0x240602 public static Result.Base RealDataVerificationFailed { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4611, 4619); } @@ -848,9 +1398,15 @@ namespace LibHac.Fs public static Result.Base BuiltInStorageCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4661, 4679); } /// Error code: 2002-4662; Inner value: 0x246c02 public static Result.Base InvalidGptPartitionSignature => new Result.Base(ModuleFs, 4662); + /// Error code: 2002-4664; Inner value: 0x247002 + public static Result.Base InvalidGptPartitionStorageSize => new Result.Base(ModuleFs, 4664); /// Error code: 2002-4681; Range: 4681-4699; Inner value: 0x249202 public static Result.Base FatFileSystemCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4681, 4699); } + /// Error code: 2002-4683; Inner value: 0x249602 + public static Result.Base InvalidFatFormat => new Result.Base(ModuleFs, 4683); + /// Error code: 2002-4684; Inner value: 0x249802 + public static Result.Base InvalidFatFileNumber => new Result.Base(ModuleFs, 4684); /// Error code: 2002-4685; Inner value: 0x249a02 public static Result.Base ExFatUnavailable => new Result.Base(ModuleFs, 4685); /// Error code: 2002-4686; Inner value: 0x249c02 @@ -882,9 +1438,15 @@ namespace LibHac.Fs /// Error code: 2002-4723; Inner value: 0x24e602 public static Result.Base InvalidKeyValueListElementIndex => new Result.Base(ModuleFs, 4723); /// Error code: 2002-4724; Inner value: 0x24e802 - public static Result.Base AllocationTableIteratedRangeEntryInternal => new Result.Base(ModuleFs, 4724); + public static Result.Base AllocationTableIteratedRangeEntry => new Result.Base(ModuleFs, 4724); /// Error code: 2002-4725; Inner value: 0x24ea02 public static Result.Base InvalidAllocationTableOffset => new Result.Base(ModuleFs, 4725); + /// Error code: 2002-4726; Inner value: 0x24ec02 + public static Result.Base InvalidAllocationTableBlockCount => new Result.Base(ModuleFs, 4726); + /// Error code: 2002-4727; Inner value: 0x24ee02 + public static Result.Base InvalidKeyValueListEntryIndex => new Result.Base(ModuleFs, 4727); + /// Error code: 2002-4728; Inner value: 0x24f002 + public static Result.Base InvalidBitmapIndex => new Result.Base(ModuleFs, 4728); /// Error code: 2002-4741; Range: 4741-4759; Inner value: 0x250a02 public static Result.Base AesXtsFileSystemCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4741, 4759); } @@ -905,9 +1467,31 @@ namespace LibHac.Fs /// Error code: 2002-4761; Range: 4761-4769; Inner value: 0x253202 public static Result.Base SaveDataTransferDataCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4761, 4769); } + /// Error code: 2002-4762; Inner value: 0x253402 + public static Result.Base Result4762 => new Result.Base(ModuleFs, 4762); + /// Error code: 2002-4763; Inner value: 0x253602 + public static Result.Base Result4763 => new Result.Base(ModuleFs, 4763); + /// Error code: 2002-4764; Inner value: 0x253802 + public static Result.Base Result4764 => new Result.Base(ModuleFs, 4764); + /// Error code: 2002-4765; Inner value: 0x253a02 + public static Result.Base Result4765 => new Result.Base(ModuleFs, 4765); + /// Error code: 2002-4766; Inner value: 0x253c02 + public static Result.Base Result4766 => new Result.Base(ModuleFs, 4766); + /// Error code: 2002-4767; Inner value: 0x253e02 + public static Result.Base Result4767 => new Result.Base(ModuleFs, 4767); /// Error code: 2002-4771; Range: 4771-4779; Inner value: 0x254602 public static Result.Base SignedSystemPartitionDataCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 4771, 4779); } + /// Error code: 2002-4772; Inner value: 0x254802 + public static Result.Base Result4772 => new Result.Base(ModuleFs, 4772); + /// Error code: 2002-4773; Inner value: 0x254a02 + public static Result.Base Result4773 => new Result.Base(ModuleFs, 4773); + /// Error code: 2002-4774; Inner value: 0x254c02 + public static Result.Base Result4774 => new Result.Base(ModuleFs, 4774); + /// Error code: 2002-4775; Inner value: 0x254e02 + public static Result.Base Result4775 => new Result.Base(ModuleFs, 4775); + /// Error code: 2002-4776; Inner value: 0x255002 + public static Result.Base Result4776 => new Result.Base(ModuleFs, 4776); /// Error code: 2002-4781; Inner value: 0x255a02 public static Result.Base GameCardLogoDataCorrupted => new Result.Base(ModuleFs, 4781); @@ -928,18 +1512,72 @@ namespace LibHac.Fs /// Error code: 2002-5000; Range: 5000-5999; Inner value: 0x271002 public static Result.Base Unexpected { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 5000, 5999); } + /// Error code: 2002-5002; Inner value: 0x271402 + public static Result.Base UnexpectedFatFileSystemError => new Result.Base(ModuleFs, 5002); + /// Error code: 2002-5003; Inner value: 0x271602 + public static Result.Base FatFileSystemDriverError => new Result.Base(ModuleFs, 5003); + /// Error code: 2002-5024; Inner value: 0x274002 + public static Result.Base FatSystemFileOpenCountLimit => new Result.Base(ModuleFs, 5024); + /// Error code: 2002-5025; Inner value: 0x274202 + public static Result.Base FatUserFileOpenCountLimit => new Result.Base(ModuleFs, 5025); + /// Error code: 2002-5026; Inner value: 0x274402 + public static Result.Base FatEntryIsDirectory => new Result.Base(ModuleFs, 5026); + /// Error code: 2002-5028; Inner value: 0x274802 + public static Result.Base FatFileSystemPermissionDenied => new Result.Base(ModuleFs, 5028); + /// Error code: 2002-5029; Inner value: 0x274a02 + public static Result.Base FatDriverInitializationFailed => new Result.Base(ModuleFs, 5029); + /// Error code: 2002-5055; Inner value: 0x277e02 + public static Result.Base UnexpectedFatSafeError => new Result.Base(ModuleFs, 5055); + /// Error code: 2002-5110; Inner value: 0x27ec02 + public static Result.Base Result5110 => new Result.Base(ModuleFs, 5110); /// Error code: 2002-5121; Inner value: 0x280202 public static Result.Base UnexpectedFatFileSystemSectorCount => new Result.Base(ModuleFs, 5121); + /// Error code: 2002-5122; Inner value: 0x280402 + public static Result.Base Result5122 => new Result.Base(ModuleFs, 5122); + /// Error code: 2002-5123; Inner value: 0x280602 + public static Result.Base NullptrArgumentForFatFormat => new Result.Base(ModuleFs, 5123); + /// Error code: 2002-5124; Inner value: 0x280802 + public static Result.Base InvalidFatFormatParamsA => new Result.Base(ModuleFs, 5124); + /// Error code: 2002-5125; Inner value: 0x280a02 + public static Result.Base InvalidFatFormatParamsB => new Result.Base(ModuleFs, 5125); + /// Error code: 2002-5126; Inner value: 0x280c02 + public static Result.Base InvalidFatFormatParamsC => new Result.Base(ModuleFs, 5126); + /// Error code: 2002-5127; Inner value: 0x280e02 + public static Result.Base InvalidFatFormatParamsD => new Result.Base(ModuleFs, 5127); + /// Error code: 2002-5131; Inner value: 0x281602 + public static Result.Base FatSectorWriteVerificationFailed => new Result.Base(ModuleFs, 5131); + /// Tried to write to an IntegrityFilteredFile that is provisionally committed.
Error code: 2002-5304; Inner value: 0x297002
+ public static Result.Base UnexpectedInJournalIntegritySaveDataFileSystemC => new Result.Base(ModuleFs, 5304); + /// Error code: 2002-5305; Inner value: 0x297202 + public static Result.Base UnexpectedInLocalFileSystemA => new Result.Base(ModuleFs, 5305); + /// Error code: 2002-5306; Inner value: 0x297402 + public static Result.Base UnexpectedInLocalFileSystemB => new Result.Base(ModuleFs, 5306); /// Error code: 2002-5307; Inner value: 0x297602 - public static Result.Base UnexpectedErrorInHostFileFlush => new Result.Base(ModuleFs, 5307); + public static Result.Base UnexpectedInLocalFileSystemC => new Result.Base(ModuleFs, 5307); /// Error code: 2002-5308; Inner value: 0x297802 - public static Result.Base UnexpectedErrorInHostFileGetSize => new Result.Base(ModuleFs, 5308); + public static Result.Base UnexpectedInLocalFileSystemD => new Result.Base(ModuleFs, 5308); /// Error code: 2002-5309; Inner value: 0x297a02 - public static Result.Base UnknownHostFileSystemError => new Result.Base(ModuleFs, 5309); + public static Result.Base UnexpectedInLocalFileSystemE => new Result.Base(ModuleFs, 5309); + /// Error code: 2002-5310; Inner value: 0x297c02 + public static Result.Base UnexpectedInLocalFileSystemF => new Result.Base(ModuleFs, 5310); + /// Error code: 2002-5315; Inner value: 0x298602 + public static Result.Base UnexpectedInAesCtrStorageA => new Result.Base(ModuleFs, 5315); + /// Error code: 2002-5316; Inner value: 0x298802 + public static Result.Base UnexpectedInAesXtsStorageA => new Result.Base(ModuleFs, 5316); + /// Error code: 2002-5317; Inner value: 0x298a02 + public static Result.Base Result5317 => new Result.Base(ModuleFs, 5317); + /// Error code: 2002-5318; Inner value: 0x298c02 + public static Result.Base Result5318 => new Result.Base(ModuleFs, 5318); /// Error code: 2002-5319; Inner value: 0x298e02 public static Result.Base UnexpectedInMountUtilityA => new Result.Base(ModuleFs, 5319); /// Error code: 2002-5320; Inner value: 0x299002 public static Result.Base InvalidNcaMountPoint => new Result.Base(ModuleFs, 5320); + /// Error code: 2002-5321; Inner value: 0x299202 + public static Result.Base UnexpectedInRamDiskFileSystemA => new Result.Base(ModuleFs, 5321); + /// Error code: 2002-5322; Inner value: 0x299402 + public static Result.Base UnexpectedInBisWiperA => new Result.Base(ModuleFs, 5322); + /// Error code: 2002-5323; Inner value: 0x299602 + public static Result.Base UnexpectedInBisWiperB => new Result.Base(ModuleFs, 5323); /// Error code: 2002-6000; Range: 6000-6499; Inner value: 0x2ee002 public static Result.Base PreconditionViolation { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 6000, 6499); } @@ -993,6 +1631,8 @@ namespace LibHac.Fs public static Result.Base InvalidCommitNameCount => new Result.Base(ModuleFs, 6071); /// Error code: 2002-6072; Inner value: 0x2f7002 public static Result.Base InvalidOpenMode => new Result.Base(ModuleFs, 6072); + /// Error code: 2002-6073; Inner value: 0x2f7202 + public static Result.Base InvalidFileSize => new Result.Base(ModuleFs, 6073); /// Error code: 2002-6074; Inner value: 0x2f7402 public static Result.Base InvalidDirectoryOpenMode => new Result.Base(ModuleFs, 6074); /// Error code: 2002-6075; Inner value: 0x2f7602 @@ -1005,6 +1645,11 @@ namespace LibHac.Fs /// Error code: 2002-6082; Inner value: 0x2f8402 public static Result.Base InvalidSaveDataSpaceId => new Result.Base(ModuleFs, 6082); + /// Error code: 2002-6101; Inner value: 0x2faa02 + public static Result.Base GameCardLogoDataTooLarge => new Result.Base(ModuleFs, 6101); + /// Error code: 2002-6102; Inner value: 0x2fac02 + public static Result.Base FileDataCacheMemorySizeTooSmall => new Result.Base(ModuleFs, 6102); + /// Error code: 2002-6200; Range: 6200-6299; Inner value: 0x307002 public static Result.Base InvalidOperationForOpenMode { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 6200, 6299); } /// Error code: 2002-6201; Inner value: 0x307202 @@ -1187,6 +1832,8 @@ namespace LibHac.Fs /// Error code: 2002-6400; Range: 6400-6449; Inner value: 0x320002 public static Result.Base PermissionDenied { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 6400, 6449); } + /// Returned when opening a host FS on a retail device.
Error code: 2002-6403; Inner value: 0x320602
+ public static Result.Base PermissionDeniedForCreateHostFileSystem => new Result.Base(ModuleFs, 6403); /// Error code: 2002-6450; Inner value: 0x326402 public static Result.Base PortAcceptableCountLimited => new Result.Base(ModuleFs, 6450); @@ -1204,10 +1851,16 @@ namespace LibHac.Fs public static Result.Base AllocatorAlreadyRegistered => new Result.Base(ModuleFs, 6458); /// Error code: 2002-6459; Inner value: 0x327602 public static Result.Base DefaultAllocatorUsed => new Result.Base(ModuleFs, 6459); + /// Error code: 2002-6460; Inner value: 0x327802 + public static Result.Base GameCardLogoDataNotReadable => new Result.Base(ModuleFs, 6460); /// Error code: 2002-6461; Inner value: 0x327a02 public static Result.Base AllocatorAlignmentViolation => new Result.Base(ModuleFs, 6461); + /// Error code: 2002-6462; Inner value: 0x327c02 + public static Result.Base GlobalFileDataCacheAlreadyEnabled => new Result.Base(ModuleFs, 6462); /// The provided file system has already been added to the multi-commit manager.
Error code: 2002-6463; Inner value: 0x327e02
public static Result.Base MultiCommitFileSystemAlreadyAdded => new Result.Base(ModuleFs, 6463); + /// Error code: 2002-6464; Inner value: 0x328002 + public static Result.Base Result6464 => new Result.Base(ModuleFs, 6464); /// Error code: 2002-6465; Inner value: 0x328202 public static Result.Base UserNotExist => new Result.Base(ModuleFs, 6465); /// Error code: 2002-6466; Inner value: 0x328402 @@ -1217,6 +1870,12 @@ namespace LibHac.Fs /// Error code: 2002-6600; Range: 6600-6699; Inner value: 0x339002 public static Result.Base NotFound { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 6600, 6699); } + /// Error code: 2002-6602; Inner value: 0x339402 + public static Result.Base SaveDataFileNotFound => new Result.Base(ModuleFs, 6602); + /// Error code: 2002-6603; Inner value: 0x339602 + public static Result.Base SaveDataDirectoryNotFound => new Result.Base(ModuleFs, 6603); + /// Error code: 2002-6604; Inner value: 0x339802 + public static Result.Base SaveDataFileTableEntryNotFound => new Result.Base(ModuleFs, 6604); /// Specified program is not found in the program registry.
Error code: 2002-6605; Inner value: 0x339a02
public static Result.Base TargetProgramNotFound => new Result.Base(ModuleFs, 6605); /// Specified program index is not found
Error code: 2002-6606; Inner value: 0x339c02
@@ -1244,13 +1903,99 @@ namespace LibHac.Fs public static Result.Base BadState { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 6900, 6999); } /// Error code: 2002-6902; Inner value: 0x35ec02 public static Result.Base NotInitialized => new Result.Base(ModuleFs, 6902); + /// Error code: 2002-6903; Inner value: 0x35ee02 + public static Result.Base BisProxyInvalidated => new Result.Base(ModuleFs, 6903); + /// Error code: 2002-6904; Inner value: 0x35f002 + public static Result.Base NcaDigestInconsistent => new Result.Base(ModuleFs, 6904); /// Error code: 2002-6905; Inner value: 0x35f202 public static Result.Base NotMounted => new Result.Base(ModuleFs, 6905); /// Error code: 2002-6906; Inner value: 0x35f402 public static Result.Base SaveDataIsExtending => new Result.Base(ModuleFs, 6906); + /// Error code: 2002-6907; Inner value: 0x35f602 + public static Result.Base SaveDataToExpandIsProvisionallyCommitted => new Result.Base(ModuleFs, 6907); + /// Error code: 2002-7002; Inner value: 0x36b402 + public static Result.Base Result7002 => new Result.Base(ModuleFs, 7002); + /// Error code: 2002-7003; Inner value: 0x36b602 + public static Result.Base Result7003 => new Result.Base(ModuleFs, 7003); + /// Error code: 2002-7004; Inner value: 0x36b802 + public static Result.Base Result7004 => new Result.Base(ModuleFs, 7004); + /// Error code: 2002-7005; Inner value: 0x36ba02 + public static Result.Base Result7005 => new Result.Base(ModuleFs, 7005); + /// Error code: 2002-7006; Inner value: 0x36bc02 + public static Result.Base Result7006 => new Result.Base(ModuleFs, 7006); + /// Error code: 2002-7009; Inner value: 0x36c202 + public static Result.Base Result7009 => new Result.Base(ModuleFs, 7009); + /// Error code: 2002-7010; Inner value: 0x36c402 + public static Result.Base Result7010 => new Result.Base(ModuleFs, 7010); + /// Error code: 2002-7011; Inner value: 0x36c602 + public static Result.Base Result7011 => new Result.Base(ModuleFs, 7011); /// Error code: 2002-7031; Inner value: 0x36ee02 public static Result.Base SaveDataPorterInvalidated => new Result.Base(ModuleFs, 7031); + /// Error code: 2002-7032; Inner value: 0x36f002 + public static Result.Base Result7032 => new Result.Base(ModuleFs, 7032); + /// Error code: 2002-7033; Inner value: 0x36f202 + public static Result.Base Result7033 => new Result.Base(ModuleFs, 7033); + /// Error code: 2002-7034; Inner value: 0x36f402 + public static Result.Base Result7034 => new Result.Base(ModuleFs, 7034); + /// Error code: 2002-7035; Inner value: 0x36f602 + public static Result.Base Result7035 => new Result.Base(ModuleFs, 7035); + /// Error code: 2002-7036; Inner value: 0x36f802 + public static Result.Base Result7036 => new Result.Base(ModuleFs, 7036); + /// Error code: 2002-7037; Inner value: 0x36fa02 + public static Result.Base Result7037 => new Result.Base(ModuleFs, 7037); + /// Error code: 2002-7038; Inner value: 0x36fc02 + public static Result.Base Result7038 => new Result.Base(ModuleFs, 7038); + /// Error code: 2002-7062; Inner value: 0x372c02 + public static Result.Base InvalidKeyPackageMac => new Result.Base(ModuleFs, 7062); + /// Error code: 2002-7063; Inner value: 0x372e02 + public static Result.Base KeyPackageSignatureVerificationFailed => new Result.Base(ModuleFs, 7063); + /// Error code: 2002-7064; Inner value: 0x373002 + public static Result.Base InvalidKeyPackageChallengeData => new Result.Base(ModuleFs, 7064); + /// Error code: 2002-7065; Inner value: 0x373202 + public static Result.Base UnsupportedKeyPackageKeyGeneration => new Result.Base(ModuleFs, 7065); + /// Error code: 2002-7066; Inner value: 0x373402 + public static Result.Base InvalidSaveDataRepairInitialDataContentGcmMac => new Result.Base(ModuleFs, 7066); + /// Error code: 2002-7069; Inner value: 0x373a02 + public static Result.Base InvalidSaveDataRepairInitialDataCmac => new Result.Base(ModuleFs, 7069); + /// The before and after initial data have different AAD.
Error code: 2002-7070; Inner value: 0x373c02
+ public static Result.Base SaveDataRepairInitialDataAadMismatch => new Result.Base(ModuleFs, 7070); + /// The before and after initial data refer to different saves.
Error code: 2002-7071; Inner value: 0x373e02
+ public static Result.Base SaveDataRepairInitialDataSaveMismatch => new Result.Base(ModuleFs, 7071); + + /// Error code: 2002-7100; Range: 7100-7139; Inner value: 0x377802 + public static Result.Base RamDiskCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 7100, 7139); } + /// Error code: 2002-7101; Inner value: 0x377a02 + public static Result.Base Result7101 => new Result.Base(ModuleFs, 7101); + + /// Error code: 2002-7111; Range: 7111-7119; Inner value: 0x378e02 + public static Result.Base RamDiskSaveDataCoreFileSystemCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 7111, 7119); } + /// Error code: 2002-7112; Inner value: 0x379002 + public static Result.Base IncorrectRamDiskSaveDataControlAreaMagic => new Result.Base(ModuleFs, 7112); + /// Error code: 2002-7113; Inner value: 0x379202 + public static Result.Base InvalidRamDiskSaveDataFileReadOffset => new Result.Base(ModuleFs, 7113); + /// Error code: 2002-7114; Inner value: 0x379402 + public static Result.Base InvalidRamDiskSaveDataCoreDataStorageSize => new Result.Base(ModuleFs, 7114); + + /// Error code: 2002-7121; Range: 7121-7139; Inner value: 0x37a202 + public static Result.Base RamDiskDatabaseCorrupted { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 7121, 7139); } + /// Error code: 2002-7122; Inner value: 0x37a402 + public static Result.Base InvalidRamDiskAllocationTableBlock => new Result.Base(ModuleFs, 7122); + /// Error code: 2002-7123; Inner value: 0x37a602 + public static Result.Base InvalidRamDiskKeyValueListElementIndex => new Result.Base(ModuleFs, 7123); + /// Error code: 2002-7124; Inner value: 0x37a802 + public static Result.Base RamDiskAllocationTableIteratedRangeEntry => new Result.Base(ModuleFs, 7124); + /// Error code: 2002-7125; Inner value: 0x37aa02 + public static Result.Base InvalidRamDiskAllocationTableOffset => new Result.Base(ModuleFs, 7125); + /// Error code: 2002-7126; Inner value: 0x37ac02 + public static Result.Base InvalidRamDiskAllocationTableBlockCount => new Result.Base(ModuleFs, 7126); + /// Error code: 2002-7127; Inner value: 0x37ae02 + public static Result.Base InvalidRamDiskKeyValueListEntryIndex => new Result.Base(ModuleFs, 7127); + + /// Error code: 2002-7142; Inner value: 0x37cc02 + public static Result.Base Result7142 => new Result.Base(ModuleFs, 7142); + /// Error code: 2002-7900; Inner value: 0x3db802 + public static Result.Base Unknown => new Result.Base(ModuleFs, 7900); /// Error code: 2002-7901; Range: 7901-7904; Inner value: 0x3dba02 public static Result.Base DbmNotFound { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleFs, 7901, 7904); } diff --git a/src/LibHac/FsSrv/EmulatedGameCard.cs b/src/LibHac/FsSrv/EmulatedGameCard.cs index 63f602bd..584fbd65 100644 --- a/src/LibHac/FsSrv/EmulatedGameCard.cs +++ b/src/LibHac/FsSrv/EmulatedGameCard.cs @@ -74,7 +74,7 @@ namespace LibHac.FsSrv public Result GetGameCardImageHash(Span outBuffer) { - if (outBuffer.Length < 0x20) return ResultFs.InvalidBufferForGameCard.Log(); + if (outBuffer.Length < 0x20) return ResultFs.GameCardPreconditionViolation.Log(); if (!IsGameCardInserted()) return ResultFs.GameCardNotInserted.Log(); CardHeader.ImageHash.CopyTo(outBuffer.Slice(0, 0x20)); @@ -83,7 +83,7 @@ namespace LibHac.FsSrv public Result GetGameCardDeviceId(Span outBuffer) { - if (outBuffer.Length < 0x10) return ResultFs.InvalidBufferForGameCard.Log(); + if (outBuffer.Length < 0x10) return ResultFs.GameCardPreconditionViolation.Log(); if (!IsGameCardInserted()) return ResultFs.GameCardNotInserted.Log(); // Skip the security mode check diff --git a/src/LibHac/FsSrv/FileSystemProxyImpl.cs b/src/LibHac/FsSrv/FileSystemProxyImpl.cs index 3b590ad9..5971771d 100644 --- a/src/LibHac/FsSrv/FileSystemProxyImpl.cs +++ b/src/LibHac/FsSrv/FileSystemProxyImpl.cs @@ -537,7 +537,7 @@ namespace LibHac.FsSrv fileSystem = FileSystemInterfaceAdapter.CreateShared(ref hostFs, isRootPath); if (fileSystem is null) - return ResultFs.AllocationMemoryFailedInCreateShared.Log(); + return ResultFs.AllocationMemoryFailedCreateShared.Log(); return Result.Success; } diff --git a/src/LibHac/FsSrv/NcaFileSystemService.cs b/src/LibHac/FsSrv/NcaFileSystemService.cs index 78eac53e..121661b8 100644 --- a/src/LibHac/FsSrv/NcaFileSystemService.cs +++ b/src/LibHac/FsSrv/NcaFileSystemService.cs @@ -314,11 +314,11 @@ namespace LibHac.FsSrv tempFileSystem = AsynchronousAccessFileSystem.CreateShared(ref tempFileSystem); if (tempFileSystem is null) - return ResultFs.AllocationMemoryFailedInAllocateShared.Log(); + return ResultFs.AllocationMemoryFailedAllocateShared.Log(); fileSystem = FileSystemInterfaceAdapter.CreateShared(ref tempFileSystem); if (fileSystem is null) - return ResultFs.AllocationMemoryFailedInCreateShared.Log(); + return ResultFs.AllocationMemoryFailedCreateShared.Log(); return Result.Success; } @@ -531,15 +531,15 @@ namespace LibHac.FsSrv tempFileSystem = StorageLayoutTypeSetFileSystem.CreateShared(ref tempFileSystem, storageFlag); if (tempFileSystem is null) - return ResultFs.AllocationMemoryFailedInAllocateShared.Log(); + return ResultFs.AllocationMemoryFailedAllocateShared.Log(); tempFileSystem = AsynchronousAccessFileSystem.CreateShared(ref tempFileSystem); if (tempFileSystem is null) - return ResultFs.AllocationMemoryFailedInAllocateShared.Log(); + return ResultFs.AllocationMemoryFailedAllocateShared.Log(); fileSystem = FileSystemInterfaceAdapter.CreateShared(ref tempFileSystem); if (fileSystem is null) - return ResultFs.AllocationMemoryFailedInCreateShared.Log(); + return ResultFs.AllocationMemoryFailedCreateShared.Log(); return Result.Success; } diff --git a/src/LibHac/FsSrv/NcaFileSystemServiceImpl.cs b/src/LibHac/FsSrv/NcaFileSystemServiceImpl.cs index 2c63b02a..fec6aa00 100644 --- a/src/LibHac/FsSrv/NcaFileSystemServiceImpl.cs +++ b/src/LibHac/FsSrv/NcaFileSystemServiceImpl.cs @@ -126,7 +126,7 @@ namespace LibHac.FsSrv readOnlyFileSystem = ReadOnlyFileSystem.CreateShared(ref manualFileSystem); if (readOnlyFileSystem?.Target is null) - return ResultFs.AllocationMemoryFailedInAllocateShared.Log(); + return ResultFs.AllocationMemoryFailedAllocateShared.Log(); Shared.Move(out fileSystem, ref readOnlyFileSystem); return Result.Success; diff --git a/src/LibHac/FsSrv/Storage/MmcService.cs b/src/LibHac/FsSrv/Storage/MmcService.cs index f933adeb..5059ccf8 100644 --- a/src/LibHac/FsSrv/Storage/MmcService.cs +++ b/src/LibHac/FsSrv/Storage/MmcService.cs @@ -133,7 +133,7 @@ namespace LibHac.FsSrv.Storage { tempStorage = SpeedEmulationStorage.CreateShared(ref tempStorage); if (tempStorage is null) - return ResultFs.AllocationMemoryFailedInCreateShared.Log(); + return ResultFs.AllocationMemoryFailedCreateShared.Log(); } storage = Shared.Move(ref tempStorage); diff --git a/src/LibHac/FsSystem/LocalFile.cs b/src/LibHac/FsSystem/LocalFile.cs index a3e7fe1c..e4faf0d8 100644 --- a/src/LibHac/FsSystem/LocalFile.cs +++ b/src/LibHac/FsSystem/LocalFile.cs @@ -55,7 +55,7 @@ namespace LibHac.FsSystem } catch (Exception ex) when (ex.HResult < 0) { - return ResultFs.UnexpectedErrorInHostFileFlush.Log(); + return ResultFs.UnexpectedInLocalFileSystemC.Log(); } } @@ -69,7 +69,7 @@ namespace LibHac.FsSystem } catch (Exception ex) when (ex.HResult < 0) { - return ResultFs.UnexpectedErrorInHostFileGetSize.Log(); + return ResultFs.UnexpectedInLocalFileSystemD.Log(); } } diff --git a/src/LibHac/FsSystem/RomFs/RomFsFile.cs b/src/LibHac/FsSystem/RomFs/RomFsFile.cs index a399875e..d903c082 100644 --- a/src/LibHac/FsSystem/RomFs/RomFsFile.cs +++ b/src/LibHac/FsSystem/RomFs/RomFsFile.cs @@ -28,7 +28,7 @@ namespace LibHac.FsSystem.RomFs long storageOffset = Offset + offset; - rc = BaseStorage.Read(storageOffset, destination.Slice(0, (int)toRead)); + rc = ConvertToApplicationResult(BaseStorage.Read(storageOffset, destination.Slice(0, (int)toRead))); if (rc.IsFailure()) return rc; bytesRead = toRead; @@ -62,5 +62,10 @@ namespace LibHac.FsSystem.RomFs { return ResultFs.NotImplemented.Log(); } + + public Result ConvertToApplicationResult(Result result) + { + return RomFsFileSystem.ConvertRomFsDriverPrivateResult(result); + } } } diff --git a/src/LibHac/FsSystem/RomFs/RomFsFileSystem.cs b/src/LibHac/FsSystem/RomFs/RomFsFileSystem.cs index 81bc9d8f..18e3e47c 100644 --- a/src/LibHac/FsSystem/RomFs/RomFsFileSystem.cs +++ b/src/LibHac/FsSystem/RomFs/RomFsFileSystem.cs @@ -107,6 +107,163 @@ namespace LibHac.FsSystem.RomFs UnsafeHelpers.SkipParamInit(out totalSpace); return ResultFs.UnsupportedGetTotalSpaceSizeForRomFsFileSystem.Log(); } + + internal static Result ConvertRomFsDriverPrivateResult(Result result) + { + if (result.IsSuccess()) + return Result.Success; + + if (ResultFs.UnsupportedVersion.Includes(result)) + return ResultFs.UnsupportedRomVersion.LogConverted(result); + + if (ResultFs.NcaCorrupted.Includes(result) || + ResultFs.IntegrityVerificationStorageCorrupted.Includes(result) || + ResultFs.BuiltInStorageCorrupted.Includes(result) || + ResultFs.PartitionFileSystemCorrupted.Includes(result) || + ResultFs.HostFileSystemCorrupted.Includes(result)) + { + return ConvertCorruptedResult(result); + } + + if (ResultFs.FatFileSystemCorrupted.Includes(result)) + return result; + + if (ResultFs.NotFound.Includes(result)) + return ResultFs.PathNotFound.LogConverted(result); + + if (ResultFs.InvalidOffset.Includes(result)) + return ResultFs.OutOfRange.LogConverted(result); + + if (ResultFs.SaveDataFileNotFound.Includes(result) || + ResultFs.IncompatiblePath.Includes(result)) + { + return ResultFs.PathNotFound.LogConverted(result); + } + + return result; + } + + private static Result ConvertCorruptedResult(Result result) + { + if (ResultFs.NcaCorrupted.Includes(result)) + { + if (ResultFs.InvalidNcaFileSystemType.Includes(result)) + return ResultFs.InvalidRomNcaFileSystemType.LogConverted(result); + + if (ResultFs.InvalidNcaSignature.Includes(result)) + return ResultFs.InvalidRomNcaSignature.LogConverted(result); + + if (ResultFs.NcaHeaderSignature1VerificationFailed.Includes(result)) + return ResultFs.RomNcaHeaderSignature1VerificationFailed.LogConverted(result); + + if (ResultFs.NcaFsHeaderHashVerificationFailed.Includes(result)) + return ResultFs.RomNcaFsHeaderHashVerificationFailed.LogConverted(result); + + if (ResultFs.InvalidNcaKeyIndex.Includes(result)) + return ResultFs.InvalidRomNcaKeyIndex.LogConverted(result); + + if (ResultFs.InvalidNcaFsHeaderHashType.Includes(result)) + return ResultFs.InvalidRomNcaFsHeaderHashType.LogConverted(result); + + if (ResultFs.InvalidNcaFsHeaderEncryptionType.Includes(result)) + return ResultFs.InvalidRomNcaFsHeaderEncryptionType.LogConverted(result); + + if (ResultFs.InvalidNcaPatchInfoIndirectSize.Includes(result)) + return ResultFs.InvalidRomNcaPatchInfoIndirectSize.LogConverted(result); + + if (ResultFs.InvalidNcaPatchInfoAesCtrExSize.Includes(result)) + return ResultFs.InvalidRomNcaPatchInfoAesCtrExSize.LogConverted(result); + + if (ResultFs.InvalidNcaPatchInfoAesCtrExOffset.Includes(result)) + return ResultFs.InvalidRomNcaPatchInfoAesCtrExOffset.LogConverted(result); + + if (ResultFs.InvalidNcaId.Includes(result)) + return ResultFs.InvalidRomNcaId.LogConverted(result); + + if (ResultFs.InvalidNcaHeader.Includes(result)) + return ResultFs.InvalidRomNcaHeader.LogConverted(result); + + if (ResultFs.InvalidNcaFsHeader.Includes(result)) + return ResultFs.InvalidRomNcaFsHeader.LogConverted(result); + + if (ResultFs.InvalidNcaPatchInfoIndirectOffset.Includes(result)) + return ResultFs.InvalidRomNcaPatchInfoIndirectOffset.LogConverted(result); + + if (ResultFs.InvalidHierarchicalSha256BlockSize.Includes(result)) + return ResultFs.InvalidRomHierarchicalSha256BlockSize.LogConverted(result); + + if (ResultFs.InvalidHierarchicalSha256LayerCount.Includes(result)) + return ResultFs.InvalidRomHierarchicalSha256LayerCount.LogConverted(result); + + if (ResultFs.HierarchicalSha256BaseStorageTooLarge.Includes(result)) + return ResultFs.RomHierarchicalSha256BaseStorageTooLarge.LogConverted(result); + + if (ResultFs.HierarchicalSha256HashVerificationFailed.Includes(result)) + return ResultFs.RomHierarchicalSha256HashVerificationFailed.LogConverted(result); + + if (ResultFs.InvalidHierarchicalIntegrityVerificationLayerCount.Includes(result)) + return ResultFs.InvalidRomHierarchicalIntegrityVerificationLayerCount.LogConverted(result); + + if (ResultFs.NcaIndirectStorageOutOfRange.Includes(result)) + return ResultFs.RomNcaIndirectStorageOutOfRange.LogConverted(result); + } + + if (ResultFs.IntegrityVerificationStorageCorrupted.Includes(result)) + { + if (ResultFs.IncorrectIntegrityVerificationMagic.Includes(result)) + return ResultFs.IncorrectRomIntegrityVerificationMagic.LogConverted(result); + + if (ResultFs.InvalidZeroHash.Includes(result)) + return ResultFs.InvalidRomZeroHash.LogConverted(result); + + if (ResultFs.NonRealDataVerificationFailed.Includes(result)) + return ResultFs.RomNonRealDataVerificationFailed.LogConverted(result); + + if (ResultFs.ClearedRealDataVerificationFailed.Includes(result)) + return ResultFs.ClearedRomRealDataVerificationFailed.LogConverted(result); + + if (ResultFs.UnclearedRealDataVerificationFailed.Includes(result)) + return ResultFs.UnclearedRomRealDataVerificationFailed.LogConverted(result); + } + + if (ResultFs.PartitionFileSystemCorrupted.Includes(result)) + { + if (ResultFs.InvalidSha256PartitionHashTarget.Includes(result)) + return ResultFs.InvalidRomSha256PartitionHashTarget.LogConverted(result); + + if (ResultFs.Sha256PartitionHashVerificationFailed.Includes(result)) + return ResultFs.RomSha256PartitionHashVerificationFailed.LogConverted(result); + + if (ResultFs.PartitionSignatureVerificationFailed.Includes(result)) + return ResultFs.RomPartitionSignatureVerificationFailed.LogConverted(result); + + if (ResultFs.Sha256PartitionSignatureVerificationFailed.Includes(result)) + return ResultFs.RomSha256PartitionSignatureVerificationFailed.LogConverted(result); + + if (ResultFs.InvalidPartitionEntryOffset.Includes(result)) + return ResultFs.InvalidRomPartitionEntryOffset.LogConverted(result); + + if (ResultFs.InvalidSha256PartitionMetaDataSize.Includes(result)) + return ResultFs.InvalidRomSha256PartitionMetaDataSize.LogConverted(result); + } + + if (ResultFs.HostFileSystemCorrupted.Includes(result)) + { + if (ResultFs.HostEntryCorrupted.Includes(result)) + return ResultFs.RomHostEntryCorrupted.LogConverted(result); + + if (ResultFs.HostFileDataCorrupted.Includes(result)) + return ResultFs.RomHostFileDataCorrupted.LogConverted(result); + + if (ResultFs.HostFileCorrupted.Includes(result)) + return ResultFs.RomHostFileCorrupted.LogConverted(result); + + if (ResultFs.InvalidHostHandle.Includes(result)) + return ResultFs.InvalidRomHostHandle.LogConverted(result); + } + + return result; + } } public class RomfsHeader diff --git a/src/LibHac/FsSystem/Save/AllocationTable.cs b/src/LibHac/FsSystem/Save/AllocationTable.cs index 3962d934..cdf21821 100644 --- a/src/LibHac/FsSystem/Save/AllocationTable.cs +++ b/src/LibHac/FsSystem/Save/AllocationTable.cs @@ -39,7 +39,7 @@ namespace LibHac.FsSystem.Save if (entries[0].IsRangeEntry()) { - ThrowHelper.ThrowResult(ResultFs.AllocationTableIteratedRangeEntryInternal.Value); + ThrowHelper.ThrowResult(ResultFs.AllocationTableIteratedRangeEntry.Value); } } else diff --git a/src/LibHac/FsSystem/Save/BufferedStorage.cs b/src/LibHac/FsSystem/Save/BufferedStorage.cs index 9e3dd1b5..6cf58c17 100644 --- a/src/LibHac/FsSystem/Save/BufferedStorage.cs +++ b/src/LibHac/FsSystem/Save/BufferedStorage.cs @@ -1295,7 +1295,7 @@ namespace LibHac.FsSystem.Save // If the read fails due to insufficient pooled buffer size, // then we want to fall back to the normal read path. - if (!ResultFs.AllocationMemoryFailedPooledBufferNotEnoughSize.Includes(rc)) + if (!ResultFs.AllocationPooledBufferNotEnoughSize.Includes(rc)) return rc; } } @@ -1519,7 +1519,7 @@ namespace LibHac.FsSystem.Save { pooledBuffer.AllocateParticularlyLarge((int)alignedSize, 1); if (pooledBuffer.GetSize() < alignedSize) - return ResultFs.AllocationMemoryFailedPooledBufferNotEnoughSize.Log(); + return ResultFs.AllocationPooledBufferNotEnoughSize.Log(); workBuffer = pooledBuffer.GetBuffer(); } diff --git a/src/LibHac/FsSystem/Save/SaveDataFileSystem.cs b/src/LibHac/FsSystem/Save/SaveDataFileSystem.cs index 66a79652..cbc9dae5 100644 --- a/src/LibHac/FsSystem/Save/SaveDataFileSystem.cs +++ b/src/LibHac/FsSystem/Save/SaveDataFileSystem.cs @@ -50,7 +50,7 @@ namespace LibHac.FsSystem.Save } else { - ThrowHelper.ThrowResult(ResultFs.InvalidSaveDataHeader.Value, "Savedata header is not valid."); + ThrowHelper.ThrowResult(ResultFs.InvalidJournalIntegritySaveDataMasterHeader.Value, "Savedata header is not valid."); } Header = IsFirstHeaderInUse ? headerA : headerB; diff --git a/src/LibHac/FsSystem/Save/SaveResults.cs b/src/LibHac/FsSystem/Save/SaveResults.cs index 34e98c47..5fc362a3 100644 --- a/src/LibHac/FsSystem/Save/SaveResults.cs +++ b/src/LibHac/FsSystem/Save/SaveResults.cs @@ -27,27 +27,27 @@ namespace LibHac.FsSystem.Save { if (ResultFs.IncorrectIntegrityVerificationMagic.Includes(result)) { - return ResultFs.InvalidSaveDataIvfcMagic.Value; + return ResultFs.IncorrectSaveDataIntegrityVerificationMagic.Value; } if (ResultFs.InvalidZeroHash.Includes(result)) { - return ResultFs.InvalidSaveDataIvfcHashValidationBit.Value; + return ResultFs.InvalidSaveDataZeroHash.Value; } if (ResultFs.NonRealDataVerificationFailed.Includes(result)) { - return ResultFs.InvalidSaveDataIvfcHash.Value; + return ResultFs.SaveDataNonRealDataVerificationFailed.Value; } if (ResultFs.ClearedRealDataVerificationFailed.Includes(result)) { - return ResultFs.EmptySaveDataIvfcHash.Value; + return ResultFs.ClearedSaveDataRealDataVerificationFailed.Value; } if (ResultFs.UnclearedRealDataVerificationFailed.Includes(result)) { - return ResultFs.InvalidSaveDataHashInIvfcTopLayer.Value; + return ResultFs.UnclearedSaveDataRealDataVerificationFailed.Value; } return result;