mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Add most FS results
This commit is contained in:
parent
0c255e0f49
commit
8848959831
15 changed files with 1393 additions and 83 deletions
|
@ -57,6 +57,8 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
|
|
||||||
2,30,45,,,UsableSpaceNotEnough,
|
2,30,45,,,UsableSpaceNotEnough,
|
||||||
2,31,,,,UsableSpaceNotEnoughForSaveData,
|
2,31,,,,UsableSpaceNotEnoughForSaveData,
|
||||||
|
2,32,,,,UsableSpaceNotEnoughAfterDataErase,
|
||||||
|
2,33,,,,UsableSpaceNotEnoughForCacheStorage,
|
||||||
2,34,38,,,UsableSpaceNotEnoughForBis,
|
2,34,38,,,UsableSpaceNotEnoughForBis,
|
||||||
2,35,,,,UsableSpaceNotEnoughForBisCalibration,
|
2,35,,,,UsableSpaceNotEnoughForBisCalibration,
|
||||||
2,36,,,,UsableSpaceNotEnoughForBisSafe,
|
2,36,,,,UsableSpaceNotEnoughForBisSafe,
|
||||||
|
@ -65,6 +67,7 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,39,,,,UsableSpaceNotEnoughForSdCard,
|
2,39,,,,UsableSpaceNotEnoughForSdCard,
|
||||||
2,50,,,,UnsupportedSdkVersion,
|
2,50,,,,UnsupportedSdkVersion,
|
||||||
2,60,,,,MountNameAlreadyExists,
|
2,60,,,,MountNameAlreadyExists,
|
||||||
|
2,70,,,,IndividualFileDataCacheAlreadyEnabled,
|
||||||
|
|
||||||
2,1000,2999,,,HandledBySystemProcess,
|
2,1000,2999,,,HandledBySystemProcess,
|
||||||
2,1001,,,,PartitionNotFound,
|
2,1001,,,,PartitionNotFound,
|
||||||
|
@ -155,18 +158,132 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,2200,,,,PortSdCardNotSupported,
|
2,2200,,,,PortSdCardNotSupported,
|
||||||
2,2201,,,,PortSdCardNotImplemented,
|
2,2201,,,,PortSdCardNotImplemented,
|
||||||
|
|
||||||
|
2,2496,,,,SdCardStorageDeviceInvalidated,
|
||||||
|
2,2497,,,,SdCardFormatWriteVerificationFailed,
|
||||||
2,2498,,,,SdCardFileSystemInvalidatedByRemoved,
|
2,2498,,,,SdCardFileSystemInvalidatedByRemoved,
|
||||||
|
2,2499,,,,SdCardDeviceUnknownError,
|
||||||
|
|
||||||
2,2500,2999,,,GameCardAccessFailed,
|
2,2500,2999,,,GameCardAccessFailed,
|
||||||
2,2503,,,,InvalidBufferForGameCard,
|
2,2503,,,,GameCardPreconditionViolation,
|
||||||
2,2520,,,,GameCardNotInserted,
|
2,2504,,,,GameCardNotImplemented,
|
||||||
2,2531,,,,GameCardCardAccessTimeout,
|
|
||||||
|
|
||||||
|
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,2951,,,,GameCardNotInsertedOnGetHandle,
|
||||||
2,2952,,,,InvalidGameCardHandleOnRead,
|
2,2952,,,,InvalidGameCardHandleOnRead,
|
||||||
2,2954,,,,InvalidGameCardHandleOnGetCardInfo,
|
2,2954,,,,InvalidGameCardHandleOnGetCardInfo,
|
||||||
|
2,2955,,,,InvalidGameCardHandleOnGetGameCardDeviceCertificate,
|
||||||
|
2,2956,,,,InvalidGameCardHandleOnGetGameCardImageHash,
|
||||||
|
2,2957,,,,InvalidGameCardHandleOnChallengeCardExistence,
|
||||||
|
2,2958,,,,InvalidGameCardHandleOnOnAcquireLock,
|
||||||
|
2,2959,,,,InvalidGameCardModeOnAcquireSecureLock,
|
||||||
2,2960,,,,InvalidGameCardHandleOnOpenNormalPartition,
|
2,2960,,,,InvalidGameCardHandleOnOpenNormalPartition,
|
||||||
2,2961,,,,InvalidGameCardHandleOnOpenSecurePartition,
|
2,2961,,,,InvalidGameCardHandleOnOpenSecurePartition,
|
||||||
|
2,2962,,,,InvalidGameCardCompatibilityType,
|
||||||
|
2,2963,,,,GameCardsNotSupportedOnDeviceModel,
|
||||||
|
|
||||||
2,3000,7999,,,Internal,
|
2,3000,7999,,,Internal,
|
||||||
2,3001,,,,NotImplemented,
|
2,3001,,,,NotImplemented,
|
||||||
|
@ -174,13 +291,21 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,3003,,,,SaveDataPathAlreadyExists,
|
2,3003,,,,SaveDataPathAlreadyExists,
|
||||||
2,3005,,,,OutOfRange,
|
2,3005,,,,OutOfRange,
|
||||||
|
|
||||||
|
2,3099,,,,,
|
||||||
2,3100,,,,SystemPartitionNotReady,
|
2,3100,,,,SystemPartitionNotReady,
|
||||||
2,3101,,,,StorageDeviceNotReady,
|
2,3101,,,,StorageDeviceNotReady,
|
||||||
|
|
||||||
2,3200,3499,,,AllocationMemoryFailed,
|
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,3211,,,,AllocationMemoryFailedInFileSystemAccessorA,
|
||||||
2,3212,,,,AllocationMemoryFailedInFileSystemAccessorB,
|
2,3212,,,,AllocationMemoryFailedInFileSystemAccessorB,
|
||||||
2,3213,,,,AllocationMemoryFailedInApplicationA,
|
2,3213,,,,AllocationMemoryFailedInApplicationA,
|
||||||
|
2,3214,,,,AllocationMemoryFailedInBcatSaveDataA,
|
||||||
2,3215,,,,AllocationMemoryFailedInBisA,
|
2,3215,,,,AllocationMemoryFailedInBisA,
|
||||||
2,3216,,,,AllocationMemoryFailedInBisB,
|
2,3216,,,,AllocationMemoryFailedInBisB,
|
||||||
2,3217,,,,AllocationMemoryFailedInBisC,
|
2,3217,,,,AllocationMemoryFailedInBisC,
|
||||||
|
@ -195,32 +320,91 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,3226,,,,AllocationMemoryFailedInGameCardB,
|
2,3226,,,,AllocationMemoryFailedInGameCardB,
|
||||||
2,3227,,,,AllocationMemoryFailedInGameCardC,
|
2,3227,,,,AllocationMemoryFailedInGameCardC,
|
||||||
2,3228,,,,AllocationMemoryFailedInGameCardD,
|
2,3228,,,,AllocationMemoryFailedInGameCardD,
|
||||||
|
2,3229,,,,AllocationMemoryFailedInHostA,
|
||||||
|
2,3230,,,,AllocationMemoryFailedInHostB,
|
||||||
|
2,3231,,,,AllocationMemoryFailedInHostC,
|
||||||
2,3232,,,,AllocationMemoryFailedInImageDirectoryA,
|
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,3244,,,,AllocationMemoryFailedInSdCardA,
|
||||||
2,3245,,,,AllocationMemoryFailedInSdCardB,
|
2,3245,,,,AllocationMemoryFailedInSdCardB,
|
||||||
2,3246,,,,AllocationMemoryFailedInSystemSaveDataA,
|
2,3246,,,,AllocationMemoryFailedInSystemSaveDataA,
|
||||||
2,3247,,,,AllocationMemoryFailedInRomFsFileSystemA,
|
2,3247,,,,AllocationMemoryFailedInRomFsFileSystemA,
|
||||||
2,3248,,,,AllocationMemoryFailedInRomFsFileSystemB,
|
2,3248,,,,AllocationMemoryFailedInRomFsFileSystemB,
|
||||||
2,3249,,,,AllocationMemoryFailedInRomFsFileSystemC,
|
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,3256,,,,AllocationMemoryFailedInNcaFileSystemServiceImplA,In ParseNsp allocating FileStorageBasedFileSystem
|
||||||
2,3257,,,,AllocationMemoryFailedInNcaFileSystemServiceImplB,In ParseNca allocating FileStorageBasedFileSystem
|
2,3257,,,,AllocationMemoryFailedInNcaFileSystemServiceImplB,In ParseNca allocating FileStorageBasedFileSystem
|
||||||
2,3258,,,,AllocationMemoryFailedInProgramRegistryManagerA,In RegisterProgram allocating ProgramInfoNode
|
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,3280,,,,AllocationMemoryFailedInPartitionFileSystemCreatorA,In Create allocating PartitionFileSystemCore
|
||||||
2,3281,,,,AllocationMemoryFailedInRomFileSystemCreatorA,
|
2,3281,,,,AllocationMemoryFailedInRomFileSystemCreatorA,
|
||||||
|
2,3282,,,,AllocationMemoryFailedInSaveDataFileSystemCreatorA,
|
||||||
|
2,3283,,,,AllocationMemoryFailedInSaveDataFileSystemCreatorB,
|
||||||
|
2,3284,,,,AllocationMemoryFailedInSaveDataFileSystemCreatorC,
|
||||||
|
2,3285,,,,AllocationMemoryFailedInSaveDataFileSystemCreatorD,
|
||||||
|
2,3286,,,,AllocationMemoryFailedInSaveDataFileSystemCreatorE,
|
||||||
2,3288,,,,AllocationMemoryFailedInStorageOnNcaCreatorA,
|
2,3288,,,,AllocationMemoryFailedInStorageOnNcaCreatorA,
|
||||||
2,3289,,,,AllocationMemoryFailedInStorageOnNcaCreatorB,
|
2,3289,,,,AllocationMemoryFailedInStorageOnNcaCreatorB,
|
||||||
|
2,3290,,,,AllocationMemoryFailedInSubDirectoryFileSystemCreatorA,
|
||||||
|
2,3291,,,,AllocationMemoryFailedInTargetManagerFileSystemCreatorA,
|
||||||
|
2,3292,,,,AllocationMemoryFailedInSaveDataIndexerA,
|
||||||
|
2,3293,,,,AllocationMemoryFailedInSaveDataIndexerB,
|
||||||
2,3294,,,,AllocationMemoryFailedInFileSystemBuddyHeapA,
|
2,3294,,,,AllocationMemoryFailedInFileSystemBuddyHeapA,
|
||||||
2,3295,,,,AllocationMemoryFailedInFileSystemBufferManagerA,
|
2,3295,,,,AllocationMemoryFailedInFileSystemBufferManagerA,
|
||||||
2,3296,,,,AllocationMemoryFailedInBlockCacheBufferedStorageA,
|
2,3296,,,,AllocationMemoryFailedInBlockCacheBufferedStorageA,
|
||||||
2,3297,,,,AllocationMemoryFailedInBlockCacheBufferedStorageB,
|
2,3297,,,,AllocationMemoryFailedInBlockCacheBufferedStorageB,
|
||||||
|
2,3298,,,,AllocationMemoryFailedInDuplexStorageA,
|
||||||
|
|
||||||
2,3304,,,,AllocationMemoryFailedInIntegrityVerificationStorageA,
|
2,3304,,,,AllocationMemoryFailedInIntegrityVerificationStorageA,
|
||||||
2,3305,,,,AllocationMemoryFailedInIntegrityVerificationStorageB,
|
2,3305,,,,AllocationMemoryFailedInIntegrityVerificationStorageB,
|
||||||
|
2,3306,,,,AllocationMemoryFailedInJournalStorageA,
|
||||||
|
2,3307,,,,AllocationMemoryFailedInJournalStorageB,
|
||||||
|
2,3310,,,,AllocationMemoryFailedInSaveDataFileSystemCoreA,
|
||||||
|
2,3311,,,,AllocationMemoryFailedInSaveDataFileSystemCoreB,
|
||||||
2,3312,,,,AllocationMemoryFailedInAesXtsFileA,In Initialize allocating FileStorage
|
2,3312,,,,AllocationMemoryFailedInAesXtsFileA,In Initialize allocating FileStorage
|
||||||
2,3313,,,,AllocationMemoryFailedInAesXtsFileB,In Initialize allocating AesXtsStorage
|
2,3313,,,,AllocationMemoryFailedInAesXtsFileB,In Initialize allocating AesXtsStorage
|
||||||
2,3314,,,,AllocationMemoryFailedInAesXtsFileC,In Initialize allocating AlignmentMatchingStoragePooledBuffer
|
2,3314,,,,AllocationMemoryFailedInAesXtsFileC,In Initialize allocating AlignmentMatchingStoragePooledBuffer
|
||||||
2,3315,,,,AllocationMemoryFailedInAesXtsFileD,In Initialize allocating StorageFile
|
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,3341,,,,AllocationMemoryFailedInNcaFileSystemDriverI,
|
||||||
2,3347,,,,AllocationMemoryFailedInPartitionFileSystemA,In Initialize allocating PartitionFileSystemMetaCore
|
2,3347,,,,AllocationMemoryFailedInPartitionFileSystemA,In Initialize allocating PartitionFileSystemMetaCore
|
||||||
2,3348,,,,AllocationMemoryFailedInPartitionFileSystemB,In DoOpenFile allocating PartitionFile
|
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,3351,,,,AllocationMemoryFailedInPartitionFileSystemMetaB,In Sha256 Initialize allocating metadata buffer
|
||||||
2,3352,,,,AllocationMemoryFailedInRomFsFileSystemD,
|
2,3352,,,,AllocationMemoryFailedInRomFsFileSystemD,
|
||||||
2,3355,,,,AllocationMemoryFailedInSubdirectoryFileSystemA,In Initialize allocating RootPathBuffer
|
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,3363,,,,AllocationMemoryFailedInNcaReaderA,
|
||||||
2,3365,,,,AllocationMemoryFailedInRegisterA,
|
2,3365,,,,AllocationMemoryFailedInRegisterA,
|
||||||
2,3366,,,,AllocationMemoryFailedInRegisterB,
|
2,3366,,,,AllocationMemoryFailedInRegisterB,
|
||||||
2,3367,,,,AllocationMemoryFailedInPathNormalizer,
|
2,3367,,,,AllocationMemoryFailedInPathNormalizer,
|
||||||
2,3375,,,,AllocationMemoryFailedInDbmRomKeyValueStorage,
|
2,3375,,,,AllocationMemoryFailedInDbmRomKeyValueStorage,
|
||||||
|
2,3376,,,,AllocationMemoryFailedInDbmHierarchicalRomFileTable,
|
||||||
2,3377,,,,AllocationMemoryFailedInRomFsFileSystemE,
|
2,3377,,,,AllocationMemoryFailedInRomFsFileSystemE,
|
||||||
|
2,3378,,,,AllocationMemoryFailedInISaveFileSystemA,
|
||||||
|
2,3379,,,,AllocationMemoryFailedInISaveFileSystemB,
|
||||||
|
2,3380,,,,AllocationMemoryFailedInRomOnFileA,
|
||||||
|
2,3381,,,,AllocationMemoryFailedInRomOnFileB,
|
||||||
|
2,3382,,,,AllocationMemoryFailedInRomOnFileC,
|
||||||
2,3383,,,,AllocationMemoryFailedInAesXtsFileE,In Initialize
|
2,3383,,,,AllocationMemoryFailedInAesXtsFileE,In Initialize
|
||||||
|
2,3384,,,,AllocationMemoryFailedInAesXtsFileSystemB,
|
||||||
|
2,3385,,,,AllocationMemoryFailedInAesXtsFileSystemC,
|
||||||
2,3386,,,,AllocationMemoryFailedInReadOnlyFileSystemA,
|
2,3386,,,,AllocationMemoryFailedInReadOnlyFileSystemA,
|
||||||
2,3394,,,,AllocationMemoryFailedInEncryptedFileSystemCreatorA,In Create allocating AesXtsFileSystem
|
2,3394,,,,AllocationMemoryFailedInEncryptedFileSystemCreatorA,In Create allocating AesXtsFileSystem
|
||||||
2,3399,,,,AllocationMemoryFailedInAesCtrCounterExtendedStorageA,
|
2,3399,,,,AllocationMemoryFailedInAesCtrCounterExtendedStorageA,
|
||||||
2,3400,,,,AllocationMemoryFailedInAesCtrCounterExtendedStorageB,
|
2,3400,,,,AllocationMemoryFailedInAesCtrCounterExtendedStorageB,
|
||||||
2,3407,,,,AllocationMemoryFailedInFileSystemInterfaceAdapter, In OpenFile or OpenDirectory
|
2,3406,,,,AllocationMemoryFailedInSdmmcStorageServiceB,
|
||||||
2,3420,,,,AllocationMemoryFailedInNew,
|
2,3407,,,,AllocationMemoryFailedInFileSystemInterfaceAdapter,In OpenFile or OpenDirectory
|
||||||
|
2,3408,,,,AllocationMemoryFailedInGameCardFileSystemCreatorG,
|
||||||
|
2,3409,,,,AllocationMemoryFailedInGameCardFileSystemCreatorH,
|
||||||
2,3411,,,,AllocationMemoryFailedInBufferedStorageA,
|
2,3411,,,,AllocationMemoryFailedInBufferedStorageA,
|
||||||
2,3412,,,,AllocationMemoryFailedInIntegrityRomFsStorageA,
|
2,3412,,,,AllocationMemoryFailedInIntegrityRomFsStorageA,
|
||||||
2,3421,,,,AllocationMemoryFailedInCreateShared,
|
2,3416,,,,AllocationMemoryFailedInSaveDataFileSystemServiceImplB,
|
||||||
2,3422,,,,AllocationMemoryFailedInMakeUnique,
|
2,3420,,,,AllocationMemoryFailedNew,
|
||||||
2,3423,,,,AllocationMemoryFailedInAllocateShared,
|
2,3421,,,,AllocationMemoryFailedCreateShared,
|
||||||
2,3424,,,,AllocationMemoryFailedPooledBufferNotEnoughSize,
|
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,3500,3999,,,MmcAccessFailed,
|
||||||
2,3501,,,,PortMmcNoDevice,
|
2,3501,,,,PortMmcNoDevice,
|
||||||
|
@ -332,6 +539,9 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,3700,,,,PortMmcNotSupported,
|
2,3700,,,,PortMmcNotSupported,
|
||||||
2,3701,,,,PortMmcNotImplemented,
|
2,3701,,,,PortMmcNotImplemented,
|
||||||
|
|
||||||
|
2,3998,,,,,
|
||||||
|
2,3999,,,,PortMmcUnexpected,
|
||||||
|
|
||||||
2,4000,4999,,,DataCorrupted,
|
2,4000,4999,,,DataCorrupted,
|
||||||
2,4001,4299,,,RomCorrupted,
|
2,4001,4299,,,RomCorrupted,
|
||||||
2,4002,,,,UnsupportedRomVersion,
|
2,4002,,,,UnsupportedRomVersion,
|
||||||
|
@ -341,6 +551,7 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,4013,,,,InvalidAesCtrCounterExtendedTableSize,
|
2,4013,,,,InvalidAesCtrCounterExtendedTableSize,
|
||||||
2,4014,,,,InvalidAesCtrCounterExtendedGeneration,
|
2,4014,,,,InvalidAesCtrCounterExtendedGeneration,
|
||||||
2,4015,,,,InvalidAesCtrCounterExtendedOffset,
|
2,4015,,,,InvalidAesCtrCounterExtendedOffset,
|
||||||
|
2,4016,,,,,
|
||||||
|
|
||||||
2,4021,4029,,,IndirectStorageCorrupted,
|
2,4021,4029,,,IndirectStorageCorrupted,
|
||||||
2,4022,,,,InvalidIndirectEntryOffset,
|
2,4022,,,,InvalidIndirectEntryOffset,
|
||||||
|
@ -349,6 +560,7 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,4025,,,,InvalidIndirectVirtualOffset,
|
2,4025,,,,InvalidIndirectVirtualOffset,
|
||||||
2,4026,,,,InvalidIndirectPhysicalOffset,
|
2,4026,,,,InvalidIndirectPhysicalOffset,
|
||||||
2,4027,,,,InvalidIndirectStorageIndex,
|
2,4027,,,,InvalidIndirectStorageIndex,
|
||||||
|
2,4028,,,,InvalidIndirectStorageBucketTreeSize,
|
||||||
|
|
||||||
2,4031,4039,,,BucketTreeCorrupted,
|
2,4031,4039,,,BucketTreeCorrupted,
|
||||||
2,4032,,,,InvalidBucketTreeSignature,
|
2,4032,,,,InvalidBucketTreeSignature,
|
||||||
|
@ -374,6 +586,13 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,4061,,,,InvalidRomNcaKeyIndex,
|
2,4061,,,,InvalidRomNcaKeyIndex,
|
||||||
2,4062,,,,InvalidRomNcaFsHeaderHashType,
|
2,4062,,,,InvalidRomNcaFsHeaderHashType,
|
||||||
2,4063,,,,InvalidRomNcaFsHeaderEncryptionType,
|
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,4071,4079,,,RomNcaHierarchicalSha256StorageCorrupted,
|
||||||
2,4072,,,,InvalidRomHierarchicalSha256BlockSize,
|
2,4072,,,,InvalidRomHierarchicalSha256BlockSize,
|
||||||
|
@ -381,11 +600,13 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,4074,,,,RomHierarchicalSha256BaseStorageTooLarge,
|
2,4074,,,,RomHierarchicalSha256BaseStorageTooLarge,
|
||||||
2,4075,,,,RomHierarchicalSha256HashVerificationFailed,
|
2,4075,,,,RomHierarchicalSha256HashVerificationFailed,
|
||||||
|
|
||||||
|
2,4081,,,,InvalidRomHierarchicalIntegrityVerificationLayerCount,
|
||||||
|
2,4082,,,,RomNcaIndirectStorageOutOfRange,
|
||||||
|
|
||||||
2,4141,4179,,,RomIntegrityVerificationStorageCorrupted,
|
2,4141,4179,,,RomIntegrityVerificationStorageCorrupted,
|
||||||
2,4142,,,,IncorrectRomIntegrityVerificationMagic,
|
2,4142,,,,IncorrectRomIntegrityVerificationMagic,
|
||||||
2,4143,,,,InvalidRomZeroHash,
|
2,4143,,,,InvalidRomZeroHash,
|
||||||
2,4144,,,,RomNonRealDataVerificationFailed,
|
2,4144,,,,RomNonRealDataVerificationFailed,
|
||||||
2,4145,,,,InvalidRomHierarchicalIntegrityVerificationLayerCount,
|
|
||||||
|
|
||||||
2,4151,4159,,,RomRealDataVerificationFailed,
|
2,4151,4159,,,RomRealDataVerificationFailed,
|
||||||
2,4152,,,,ClearedRomRealDataVerificationFailed,
|
2,4152,,,,ClearedRomRealDataVerificationFailed,
|
||||||
|
@ -412,31 +633,104 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,4262,,,,InvalidRomAllocationTableBlock,
|
2,4262,,,,InvalidRomAllocationTableBlock,
|
||||||
2,4263,,,,InvalidRomKeyValueListElementIndex,
|
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,4301,4499,,,SaveDataCorrupted,
|
||||||
2,4302,,,,UnsupportedSaveVersion,
|
2,4302,,,,UnsupportedSaveVersion,
|
||||||
2,4303,,,,InvalidSaveDataEntryType,
|
2,4303,,,,InvalidSaveDataEntryType,
|
||||||
2,4315,,,,InvalidSaveDataHeader,
|
|
||||||
2,4362,,,,InvalidSaveDataIvfcMagic,
|
2,4311,4319,,,JournalIntegritySaveDataCorrupted,
|
||||||
2,4363,,,,InvalidSaveDataIvfcHashValidationBit,
|
2,4312,,,,InvalidJournalIntegritySaveDataMasterDataSize,
|
||||||
2,4364,,,,InvalidSaveDataIvfcHash,
|
2,4313,,,,InconsistentJournalIntegritySaveDataCommitState,
|
||||||
2,4372,,,,EmptySaveDataIvfcHash,
|
2,4314,,,,InvalidJournalIntegritySaveDataStorageSize,
|
||||||
2,4373,,,,InvalidSaveDataHashInIvfcTopLayer,
|
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,4402,,,,SaveDataInvalidGptPartitionSignature,
|
||||||
|
|
||||||
|
2,4411,4419,,,SaveDataCoreFileSystemCorrupted,
|
||||||
|
2,4412,,,,IncorrectSaveDataControlAreaMagic,
|
||||||
|
2,4413,,,,InvalidSaveDataFileReadOffset,
|
||||||
|
2,4414,,,,InvalidSaveDataCoreDataStorageSize,
|
||||||
|
|
||||||
2,4427,,,,IncompleteBlockInZeroBitmapHashStorageFileSaveData,
|
2,4427,,,,IncompleteBlockInZeroBitmapHashStorageFileSaveData,
|
||||||
|
|
||||||
|
2,4431,4439,,,JournalStorageCorrupted,
|
||||||
|
2,4432,,,,JournalStorageAccessOutOfRange,
|
||||||
|
2,4433,,,,InvalidJournalStorageDataStorageSize,
|
||||||
|
|
||||||
2,4441,4459,,,SaveDataHostFileSystemCorrupted,
|
2,4441,4459,,,SaveDataHostFileSystemCorrupted,
|
||||||
2,4442,,,,SaveDataHostEntryCorrupted,
|
2,4442,,,,SaveDataHostEntryCorrupted,
|
||||||
2,4443,,,,SaveDataHostFileDataCorrupted,
|
2,4443,,,,SaveDataHostFileDataCorrupted,
|
||||||
2,4444,,,,SaveDataHostFileCorrupted,
|
2,4444,,,,SaveDataHostFileCorrupted,
|
||||||
2,4445,,,,InvalidSaveDataHostHandle,
|
2,4445,,,,InvalidSaveDataHostHandle,
|
||||||
|
|
||||||
|
2,4451,4459,,,MappingTableCorrupted,
|
||||||
|
2,4452,,,,InvalidMappingTableEntryCount,
|
||||||
|
2,4453,,,,InvalidMappingTablePhysicalIndex,
|
||||||
|
2,4454,,,,InvalidMappingTableVirtualIndex,
|
||||||
|
|
||||||
|
2,4461,4479,,,SaveDataDatabaseCorrupted,
|
||||||
2,4462,,,,SaveDataAllocationTableCorrupted,
|
2,4462,,,,SaveDataAllocationTableCorrupted,
|
||||||
2,4463,,,,SaveDataFileTableCorrupted,
|
2,4463,,,,InvalidSaveDataKeyValueListElementIndex,
|
||||||
2,4464,,,,AllocationTableIteratedRangeEntry,
|
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,4501,4599,,,NcaCorrupted,
|
||||||
2,4508,,,,NcaBaseStorageOutOfRangeA,
|
2,4508,,,,NcaBaseStorageOutOfRangeA,
|
||||||
2,4509,,,,NcaBaseStorageOutOfRangeB,
|
2,4509,,,,NcaBaseStorageOutOfRangeB,
|
||||||
|
2,4510,,,,NcaBaseStorageOutOfRangeC,
|
||||||
|
|
||||||
2,4511,4529,,,NcaFileSystemCorrupted,
|
2,4511,4529,,,NcaFileSystemCorrupted,
|
||||||
2,4512,,,,InvalidNcaFileSystemType,
|
2,4512,,,,InvalidNcaFileSystemType,
|
||||||
|
@ -457,6 +751,7 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,4527,,,,InvalidNcaId,
|
2,4527,,,,InvalidNcaId,
|
||||||
2,4528,,,,InvalidNcaHeader,
|
2,4528,,,,InvalidNcaHeader,
|
||||||
2,4529,,,,InvalidNcaFsHeader,
|
2,4529,,,,InvalidNcaFsHeader,
|
||||||
|
2,4530,,,,InvalidNcaPatchInfoIndirectOffset,
|
||||||
|
|
||||||
2,4531,4539,,,NcaHierarchicalSha256StorageCorrupted,
|
2,4531,4539,,,NcaHierarchicalSha256StorageCorrupted,
|
||||||
2,4532,,,,InvalidHierarchicalSha256BlockSize,
|
2,4532,,,,InvalidHierarchicalSha256BlockSize,
|
||||||
|
@ -464,13 +759,16 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,4534,,,,HierarchicalSha256BaseStorageTooLarge,
|
2,4534,,,,HierarchicalSha256BaseStorageTooLarge,
|
||||||
2,4535,,,,HierarchicalSha256HashVerificationFailed,
|
2,4535,,,,HierarchicalSha256HashVerificationFailed,
|
||||||
|
|
||||||
|
2,4541,,,,InvalidHierarchicalIntegrityVerificationLayerCount,
|
||||||
|
2,4542,,,,NcaIndirectStorageOutOfRange,
|
||||||
2,4543,,,,InvalidNcaHeader1SignatureKeyGeneration,
|
2,4543,,,,InvalidNcaHeader1SignatureKeyGeneration,
|
||||||
|
2,4545,,,,InvalidNspdVerificationData,
|
||||||
|
2,4546,,,,MissingNspdVerificationData,
|
||||||
|
|
||||||
2,4601,4639,,,IntegrityVerificationStorageCorrupted,
|
2,4601,4639,,,IntegrityVerificationStorageCorrupted,
|
||||||
2,4602,,,,IncorrectIntegrityVerificationMagic,
|
2,4602,,,,IncorrectIntegrityVerificationMagic,
|
||||||
2,4603,,,,InvalidZeroHash,
|
2,4603,,,,InvalidZeroHash,
|
||||||
2,4604,,,,NonRealDataVerificationFailed,
|
2,4604,,,,NonRealDataVerificationFailed,
|
||||||
2,4605,,,,InvalidHierarchicalIntegrityVerificationLayerCount,
|
|
||||||
|
|
||||||
2,4611,4619,,,RealDataVerificationFailed,
|
2,4611,4619,,,RealDataVerificationFailed,
|
||||||
2,4612,,,,ClearedRealDataVerificationFailed,
|
2,4612,,,,ClearedRealDataVerificationFailed,
|
||||||
|
@ -486,8 +784,11 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
|
|
||||||
2,4661,4679,,,BuiltInStorageCorrupted,
|
2,4661,4679,,,BuiltInStorageCorrupted,
|
||||||
2,4662,,,,InvalidGptPartitionSignature,
|
2,4662,,,,InvalidGptPartitionSignature,
|
||||||
|
2,4664,,,,InvalidGptPartitionStorageSize,
|
||||||
|
|
||||||
2,4681,4699,,,FatFileSystemCorrupted,
|
2,4681,4699,,,FatFileSystemCorrupted,
|
||||||
|
2,4683,,,,InvalidFatFormat,
|
||||||
|
2,4684,,,,InvalidFatFileNumber,
|
||||||
2,4685,,,,ExFatUnavailable,
|
2,4685,,,,ExFatUnavailable,
|
||||||
2,4686,,,,InvalidFatFormatForBisUser,
|
2,4686,,,,InvalidFatFormatForBisUser,
|
||||||
2,4687,,,,InvalidFatFormatForBisSystem,
|
2,4687,,,,InvalidFatFormatForBisSystem,
|
||||||
|
@ -504,8 +805,11 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,4721,4739,,,DatabaseCorrupted,
|
2,4721,4739,,,DatabaseCorrupted,
|
||||||
2,4722,,,,InvalidAllocationTableBlock,
|
2,4722,,,,InvalidAllocationTableBlock,
|
||||||
2,4723,,,,InvalidKeyValueListElementIndex,
|
2,4723,,,,InvalidKeyValueListElementIndex,
|
||||||
2,4724,,,,AllocationTableIteratedRangeEntryInternal,
|
2,4724,,,,AllocationTableIteratedRangeEntry,
|
||||||
2,4725,,,,InvalidAllocationTableOffset,
|
2,4725,,,,InvalidAllocationTableOffset,
|
||||||
|
2,4726,,,,InvalidAllocationTableBlockCount,
|
||||||
|
2,4727,,,,InvalidKeyValueListEntryIndex,
|
||||||
|
2,4728,,,,InvalidBitmapIndex,
|
||||||
|
|
||||||
2,4741,4759,,,AesXtsFileSystemCorrupted,
|
2,4741,4759,,,AesXtsFileSystemCorrupted,
|
||||||
2,4742,,,,AesXtsFileHeaderTooShort,
|
2,4742,,,,AesXtsFileHeaderTooShort,
|
||||||
|
@ -517,8 +821,20 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,4748,,,,AesXtsFileHeaderInvalidKeysInSetSize,
|
2,4748,,,,AesXtsFileHeaderInvalidKeysInSetSize,
|
||||||
|
|
||||||
2,4761,4769,,,SaveDataTransferDataCorrupted,
|
2,4761,4769,,,SaveDataTransferDataCorrupted,
|
||||||
|
2,4762,,,,,
|
||||||
|
2,4763,,,,,
|
||||||
|
2,4764,,,,,
|
||||||
|
2,4765,,,,,
|
||||||
|
2,4766,,,,,
|
||||||
|
2,4767,,,,,
|
||||||
|
|
||||||
2,4771,4779,,,SignedSystemPartitionDataCorrupted,
|
2,4771,4779,,,SignedSystemPartitionDataCorrupted,
|
||||||
|
2,4772,,,,,
|
||||||
|
2,4773,,,,,
|
||||||
|
2,4774,,,,,
|
||||||
|
2,4775,,,,,
|
||||||
|
2,4776,,,,,
|
||||||
|
|
||||||
2,4781,,,,GameCardLogoDataCorrupted,
|
2,4781,,,,GameCardLogoDataCorrupted,
|
||||||
2,4785,,,,SimulatedDeviceDataCorrupted,
|
2,4785,,,,SimulatedDeviceDataCorrupted,
|
||||||
|
|
||||||
|
@ -530,12 +846,42 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,4812,,,,IncompleteBlockInZeroBitmapHashStorageFile,
|
2,4812,,,,IncompleteBlockInZeroBitmapHashStorageFile,
|
||||||
|
|
||||||
2,5000,5999,,,Unexpected,
|
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,5121,,,,UnexpectedFatFileSystemSectorCount,
|
||||||
2,5307,,,,UnexpectedErrorInHostFileFlush,
|
2,5122,,,,,
|
||||||
2,5308,,,,UnexpectedErrorInHostFileGetSize,
|
2,5123,,,,NullptrArgumentForFatFormat,
|
||||||
2,5309,,,,UnknownHostFileSystemError,
|
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,5319,,,,UnexpectedInMountUtilityA,
|
||||||
|
|
||||||
2,5320,,,,InvalidNcaMountPoint,
|
2,5320,,,,InvalidNcaMountPoint,
|
||||||
|
2,5321,,,,UnexpectedInRamDiskFileSystemA,
|
||||||
|
2,5322,,,,UnexpectedInBisWiperA,
|
||||||
|
2,5323,,,,UnexpectedInBisWiperB,
|
||||||
|
|
||||||
2,6000,6499,,,PreconditionViolation,
|
2,6000,6499,,,PreconditionViolation,
|
||||||
2,6001,6199,,,InvalidArgument,
|
2,6001,6199,,,InvalidArgument,
|
||||||
|
@ -564,6 +910,7 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,6070,,,,InvalidCacheStorageIndex,
|
2,6070,,,,InvalidCacheStorageIndex,
|
||||||
2,6071,,,,InvalidCommitNameCount,Up to 10 file systems can be committed at the same time.
|
2,6071,,,,InvalidCommitNameCount,Up to 10 file systems can be committed at the same time.
|
||||||
2,6072,,,,InvalidOpenMode,
|
2,6072,,,,InvalidOpenMode,
|
||||||
|
2,6073,,,,InvalidFileSize,
|
||||||
2,6074,,,,InvalidDirectoryOpenMode,
|
2,6074,,,,InvalidDirectoryOpenMode,
|
||||||
2,6075,,,,InvalidCommitOption,
|
2,6075,,,,InvalidCommitOption,
|
||||||
|
|
||||||
|
@ -571,6 +918,9 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,6081,,,,InvalidSaveDataState,
|
2,6081,,,,InvalidSaveDataState,
|
||||||
2,6082,,,,InvalidSaveDataSpaceId,
|
2,6082,,,,InvalidSaveDataSpaceId,
|
||||||
|
|
||||||
|
2,6101,,,,GameCardLogoDataTooLarge,
|
||||||
|
2,6102,,,,FileDataCacheMemorySizeTooSmall,
|
||||||
|
|
||||||
2,6200,6299,,,InvalidOperationForOpenMode,
|
2,6200,6299,,,InvalidOperationForOpenMode,
|
||||||
2,6201,,,,FileExtensionWithoutOpenModeAllowAppend,
|
2,6201,,,,FileExtensionWithoutOpenModeAllowAppend,
|
||||||
2,6202,,,,ReadUnpermitted,
|
2,6202,,,,ReadUnpermitted,
|
||||||
|
@ -663,6 +1013,7 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,6386,,,,UnsupportedSetSizeForZeroBitmapHashStorageFile,
|
2,6386,,,,UnsupportedSetSizeForZeroBitmapHashStorageFile,
|
||||||
|
|
||||||
2,6400,6449,,,PermissionDenied,
|
2,6400,6449,,,PermissionDenied,
|
||||||
|
2,6403,,,,PermissionDeniedForCreateHostFileSystem,Returned when opening a host FS on a retail device.
|
||||||
|
|
||||||
2,6450,,,,PortAcceptableCountLimited,
|
2,6450,,,,PortAcceptableCountLimited,
|
||||||
2,6452,,,,ExternalKeyAlreadyRegistered,
|
2,6452,,,,ExternalKeyAlreadyRegistered,
|
||||||
|
@ -672,13 +1023,19 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary
|
||||||
2,6457,,,,WriteModeFileNotClosed,
|
2,6457,,,,WriteModeFileNotClosed,
|
||||||
2,6458,,,,AllocatorAlreadyRegistered,
|
2,6458,,,,AllocatorAlreadyRegistered,
|
||||||
2,6459,,,,DefaultAllocatorUsed,
|
2,6459,,,,DefaultAllocatorUsed,
|
||||||
|
2,6460,,,,GameCardLogoDataNotReadable,
|
||||||
2,6461,,,,AllocatorAlignmentViolation,
|
2,6461,,,,AllocatorAlignmentViolation,
|
||||||
|
2,6462,,,,GlobalFileDataCacheAlreadyEnabled,
|
||||||
2,6463,,,,MultiCommitFileSystemAlreadyAdded,The provided file system has already been added to the multi-commit manager.
|
2,6463,,,,MultiCommitFileSystemAlreadyAdded,The provided file system has already been added to the multi-commit manager.
|
||||||
|
2,6464,,,,,
|
||||||
2,6465,,,,UserNotExist,
|
2,6465,,,,UserNotExist,
|
||||||
2,6466,,,,DefaultGlobalFileDataCacheEnabled,
|
2,6466,,,,DefaultGlobalFileDataCacheEnabled,
|
||||||
2,6467,,,,SaveDataRootPathUnavailable,
|
2,6467,,,,SaveDataRootPathUnavailable,
|
||||||
|
|
||||||
2,6600,6699,,,NotFound,
|
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,6605,,,,TargetProgramNotFound,Specified program is not found in the program registry.
|
||||||
2,6606,,,,TargetProgramIndexNotFound,Specified program index is not found
|
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,6900,6999,,,BadState,
|
||||||
2,6902,,,,NotInitialized,
|
2,6902,,,,NotInitialized,
|
||||||
|
2,6903,,,,BisProxyInvalidated,
|
||||||
|
2,6904,,,,NcaDigestInconsistent,
|
||||||
2,6905,,,,NotMounted,
|
2,6905,,,,NotMounted,
|
||||||
2,6906,,,,SaveDataIsExtending,
|
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,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,7901,7904,,,DbmNotFound,
|
||||||
2,7902,,,,DbmKeyNotFound,
|
2,7902,,,,DbmKeyNotFound,
|
||||||
2,7903,,,,DbmFileNotFound,
|
2,7903,,,,DbmFileNotFound,
|
||||||
|
|
|
|
@ -35,7 +35,7 @@ namespace LibHac.Common
|
||||||
ERROR_ALREADY_EXISTS => ResultFs.PathAlreadyExists.Value,
|
ERROR_ALREADY_EXISTS => ResultFs.PathAlreadyExists.Value,
|
||||||
ERROR_DIRECTORY => ResultFs.PathNotFound.Value,
|
ERROR_DIRECTORY => ResultFs.PathNotFound.Value,
|
||||||
ERROR_SPACES_NOT_ENOUGH_DRIVES => ResultFs.UsableSpaceNotEnough.Value,
|
ERROR_SPACES_NOT_ENOUGH_DRIVES => ResultFs.UsableSpaceNotEnough.Value,
|
||||||
_ => ResultFs.UnknownHostFileSystemError.Value
|
_ => ResultFs.UnexpectedInLocalFileSystemE.Value
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -74,7 +74,7 @@ namespace LibHac.FsSrv
|
||||||
|
|
||||||
public Result GetGameCardImageHash(Span<byte> outBuffer)
|
public Result GetGameCardImageHash(Span<byte> outBuffer)
|
||||||
{
|
{
|
||||||
if (outBuffer.Length < 0x20) return ResultFs.InvalidBufferForGameCard.Log();
|
if (outBuffer.Length < 0x20) return ResultFs.GameCardPreconditionViolation.Log();
|
||||||
if (!IsGameCardInserted()) return ResultFs.GameCardNotInserted.Log();
|
if (!IsGameCardInserted()) return ResultFs.GameCardNotInserted.Log();
|
||||||
|
|
||||||
CardHeader.ImageHash.CopyTo(outBuffer.Slice(0, 0x20));
|
CardHeader.ImageHash.CopyTo(outBuffer.Slice(0, 0x20));
|
||||||
|
@ -83,7 +83,7 @@ namespace LibHac.FsSrv
|
||||||
|
|
||||||
public Result GetGameCardDeviceId(Span<byte> outBuffer)
|
public Result GetGameCardDeviceId(Span<byte> outBuffer)
|
||||||
{
|
{
|
||||||
if (outBuffer.Length < 0x10) return ResultFs.InvalidBufferForGameCard.Log();
|
if (outBuffer.Length < 0x10) return ResultFs.GameCardPreconditionViolation.Log();
|
||||||
if (!IsGameCardInserted()) return ResultFs.GameCardNotInserted.Log();
|
if (!IsGameCardInserted()) return ResultFs.GameCardNotInserted.Log();
|
||||||
|
|
||||||
// Skip the security mode check
|
// Skip the security mode check
|
||||||
|
|
|
@ -537,7 +537,7 @@ namespace LibHac.FsSrv
|
||||||
fileSystem = FileSystemInterfaceAdapter.CreateShared(ref hostFs, isRootPath);
|
fileSystem = FileSystemInterfaceAdapter.CreateShared(ref hostFs, isRootPath);
|
||||||
|
|
||||||
if (fileSystem is null)
|
if (fileSystem is null)
|
||||||
return ResultFs.AllocationMemoryFailedInCreateShared.Log();
|
return ResultFs.AllocationMemoryFailedCreateShared.Log();
|
||||||
|
|
||||||
return Result.Success;
|
return Result.Success;
|
||||||
}
|
}
|
||||||
|
|
|
@ -314,11 +314,11 @@ namespace LibHac.FsSrv
|
||||||
|
|
||||||
tempFileSystem = AsynchronousAccessFileSystem.CreateShared(ref tempFileSystem);
|
tempFileSystem = AsynchronousAccessFileSystem.CreateShared(ref tempFileSystem);
|
||||||
if (tempFileSystem is null)
|
if (tempFileSystem is null)
|
||||||
return ResultFs.AllocationMemoryFailedInAllocateShared.Log();
|
return ResultFs.AllocationMemoryFailedAllocateShared.Log();
|
||||||
|
|
||||||
fileSystem = FileSystemInterfaceAdapter.CreateShared(ref tempFileSystem);
|
fileSystem = FileSystemInterfaceAdapter.CreateShared(ref tempFileSystem);
|
||||||
if (fileSystem is null)
|
if (fileSystem is null)
|
||||||
return ResultFs.AllocationMemoryFailedInCreateShared.Log();
|
return ResultFs.AllocationMemoryFailedCreateShared.Log();
|
||||||
|
|
||||||
return Result.Success;
|
return Result.Success;
|
||||||
}
|
}
|
||||||
|
@ -531,15 +531,15 @@ namespace LibHac.FsSrv
|
||||||
|
|
||||||
tempFileSystem = StorageLayoutTypeSetFileSystem.CreateShared(ref tempFileSystem, storageFlag);
|
tempFileSystem = StorageLayoutTypeSetFileSystem.CreateShared(ref tempFileSystem, storageFlag);
|
||||||
if (tempFileSystem is null)
|
if (tempFileSystem is null)
|
||||||
return ResultFs.AllocationMemoryFailedInAllocateShared.Log();
|
return ResultFs.AllocationMemoryFailedAllocateShared.Log();
|
||||||
|
|
||||||
tempFileSystem = AsynchronousAccessFileSystem.CreateShared(ref tempFileSystem);
|
tempFileSystem = AsynchronousAccessFileSystem.CreateShared(ref tempFileSystem);
|
||||||
if (tempFileSystem is null)
|
if (tempFileSystem is null)
|
||||||
return ResultFs.AllocationMemoryFailedInAllocateShared.Log();
|
return ResultFs.AllocationMemoryFailedAllocateShared.Log();
|
||||||
|
|
||||||
fileSystem = FileSystemInterfaceAdapter.CreateShared(ref tempFileSystem);
|
fileSystem = FileSystemInterfaceAdapter.CreateShared(ref tempFileSystem);
|
||||||
if (fileSystem is null)
|
if (fileSystem is null)
|
||||||
return ResultFs.AllocationMemoryFailedInCreateShared.Log();
|
return ResultFs.AllocationMemoryFailedCreateShared.Log();
|
||||||
|
|
||||||
return Result.Success;
|
return Result.Success;
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,7 +126,7 @@ namespace LibHac.FsSrv
|
||||||
|
|
||||||
readOnlyFileSystem = ReadOnlyFileSystem.CreateShared(ref manualFileSystem);
|
readOnlyFileSystem = ReadOnlyFileSystem.CreateShared(ref manualFileSystem);
|
||||||
if (readOnlyFileSystem?.Target is null)
|
if (readOnlyFileSystem?.Target is null)
|
||||||
return ResultFs.AllocationMemoryFailedInAllocateShared.Log();
|
return ResultFs.AllocationMemoryFailedAllocateShared.Log();
|
||||||
|
|
||||||
Shared.Move(out fileSystem, ref readOnlyFileSystem);
|
Shared.Move(out fileSystem, ref readOnlyFileSystem);
|
||||||
return Result.Success;
|
return Result.Success;
|
||||||
|
|
|
@ -133,7 +133,7 @@ namespace LibHac.FsSrv.Storage
|
||||||
{
|
{
|
||||||
tempStorage = SpeedEmulationStorage.CreateShared(ref tempStorage);
|
tempStorage = SpeedEmulationStorage.CreateShared(ref tempStorage);
|
||||||
if (tempStorage is null)
|
if (tempStorage is null)
|
||||||
return ResultFs.AllocationMemoryFailedInCreateShared.Log();
|
return ResultFs.AllocationMemoryFailedCreateShared.Log();
|
||||||
}
|
}
|
||||||
|
|
||||||
storage = Shared.Move(ref tempStorage);
|
storage = Shared.Move(ref tempStorage);
|
||||||
|
|
|
@ -55,7 +55,7 @@ namespace LibHac.FsSystem
|
||||||
}
|
}
|
||||||
catch (Exception ex) when (ex.HResult < 0)
|
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)
|
catch (Exception ex) when (ex.HResult < 0)
|
||||||
{
|
{
|
||||||
return ResultFs.UnexpectedErrorInHostFileGetSize.Log();
|
return ResultFs.UnexpectedInLocalFileSystemD.Log();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ namespace LibHac.FsSystem.RomFs
|
||||||
|
|
||||||
long storageOffset = Offset + offset;
|
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;
|
if (rc.IsFailure()) return rc;
|
||||||
|
|
||||||
bytesRead = toRead;
|
bytesRead = toRead;
|
||||||
|
@ -62,5 +62,10 @@ namespace LibHac.FsSystem.RomFs
|
||||||
{
|
{
|
||||||
return ResultFs.NotImplemented.Log();
|
return ResultFs.NotImplemented.Log();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Result ConvertToApplicationResult(Result result)
|
||||||
|
{
|
||||||
|
return RomFsFileSystem.ConvertRomFsDriverPrivateResult(result);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,6 +107,163 @@ namespace LibHac.FsSystem.RomFs
|
||||||
UnsafeHelpers.SkipParamInit(out totalSpace);
|
UnsafeHelpers.SkipParamInit(out totalSpace);
|
||||||
return ResultFs.UnsupportedGetTotalSpaceSizeForRomFsFileSystem.Log();
|
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
|
public class RomfsHeader
|
||||||
|
|
|
@ -39,7 +39,7 @@ namespace LibHac.FsSystem.Save
|
||||||
|
|
||||||
if (entries[0].IsRangeEntry())
|
if (entries[0].IsRangeEntry())
|
||||||
{
|
{
|
||||||
ThrowHelper.ThrowResult(ResultFs.AllocationTableIteratedRangeEntryInternal.Value);
|
ThrowHelper.ThrowResult(ResultFs.AllocationTableIteratedRangeEntry.Value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -1295,7 +1295,7 @@ namespace LibHac.FsSystem.Save
|
||||||
|
|
||||||
// If the read fails due to insufficient pooled buffer size,
|
// If the read fails due to insufficient pooled buffer size,
|
||||||
// then we want to fall back to the normal read path.
|
// then we want to fall back to the normal read path.
|
||||||
if (!ResultFs.AllocationMemoryFailedPooledBufferNotEnoughSize.Includes(rc))
|
if (!ResultFs.AllocationPooledBufferNotEnoughSize.Includes(rc))
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1519,7 +1519,7 @@ namespace LibHac.FsSystem.Save
|
||||||
{
|
{
|
||||||
pooledBuffer.AllocateParticularlyLarge((int)alignedSize, 1);
|
pooledBuffer.AllocateParticularlyLarge((int)alignedSize, 1);
|
||||||
if (pooledBuffer.GetSize() < alignedSize)
|
if (pooledBuffer.GetSize() < alignedSize)
|
||||||
return ResultFs.AllocationMemoryFailedPooledBufferNotEnoughSize.Log();
|
return ResultFs.AllocationPooledBufferNotEnoughSize.Log();
|
||||||
|
|
||||||
workBuffer = pooledBuffer.GetBuffer();
|
workBuffer = pooledBuffer.GetBuffer();
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ namespace LibHac.FsSystem.Save
|
||||||
}
|
}
|
||||||
else
|
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;
|
Header = IsFirstHeaderInUse ? headerA : headerB;
|
||||||
|
|
|
@ -27,27 +27,27 @@ namespace LibHac.FsSystem.Save
|
||||||
{
|
{
|
||||||
if (ResultFs.IncorrectIntegrityVerificationMagic.Includes(result))
|
if (ResultFs.IncorrectIntegrityVerificationMagic.Includes(result))
|
||||||
{
|
{
|
||||||
return ResultFs.InvalidSaveDataIvfcMagic.Value;
|
return ResultFs.IncorrectSaveDataIntegrityVerificationMagic.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ResultFs.InvalidZeroHash.Includes(result))
|
if (ResultFs.InvalidZeroHash.Includes(result))
|
||||||
{
|
{
|
||||||
return ResultFs.InvalidSaveDataIvfcHashValidationBit.Value;
|
return ResultFs.InvalidSaveDataZeroHash.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ResultFs.NonRealDataVerificationFailed.Includes(result))
|
if (ResultFs.NonRealDataVerificationFailed.Includes(result))
|
||||||
{
|
{
|
||||||
return ResultFs.InvalidSaveDataIvfcHash.Value;
|
return ResultFs.SaveDataNonRealDataVerificationFailed.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ResultFs.ClearedRealDataVerificationFailed.Includes(result))
|
if (ResultFs.ClearedRealDataVerificationFailed.Includes(result))
|
||||||
{
|
{
|
||||||
return ResultFs.EmptySaveDataIvfcHash.Value;
|
return ResultFs.ClearedSaveDataRealDataVerificationFailed.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ResultFs.UnclearedRealDataVerificationFailed.Includes(result))
|
if (ResultFs.UnclearedRealDataVerificationFailed.Includes(result))
|
||||||
{
|
{
|
||||||
return ResultFs.InvalidSaveDataHashInIvfcTopLayer.Value;
|
return ResultFs.UnclearedSaveDataRealDataVerificationFailed.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in a new issue