From 981b9026069ff294bdc54edf5df3fa68e30b9d7d Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Fri, 8 Jan 2021 20:56:48 -0700 Subject: [PATCH] Move Results to their correct namespaces --- build/CodeGen/result_modules.csv | 2 +- build/CodeGen/result_namespaces.csv | 4 +- build/CodeGen/results.csv | 31 ++-- src/LibHac/Fs/Shim/Host.cs | 1 - src/LibHac/Fs/Shim/SaveDataManagement.cs | 1 - src/LibHac/Fs/Shim/SdCard.cs | 1 - src/LibHac/Sdmmc/ResultSdmmc.cs | 185 +++++++++++++++++++++++ src/LibHac/Sf/Cmif/ResultCmif.cs | 43 ++++++ src/LibHac/Sf/Impl/ResultSfImpl.cs | 27 ++++ src/LibHac/Sf/ResultSf.cs | 34 +---- 10 files changed, 282 insertions(+), 47 deletions(-) create mode 100644 src/LibHac/Sdmmc/ResultSdmmc.cs create mode 100644 src/LibHac/Sf/Cmif/ResultCmif.cs create mode 100644 src/LibHac/Sf/Impl/ResultSfImpl.cs diff --git a/build/CodeGen/result_modules.csv b/build/CodeGen/result_modules.csv index 10b66683..2d294046 100644 --- a/build/CodeGen/result_modules.csv +++ b/build/CodeGen/result_modules.csv @@ -14,7 +14,7 @@ Id,Name,Default Namespace 20,Kvdb, 21,Sm, 22,Ro, -24,Sdmmc,FsSrv +24,Sdmmc, 26,Spl, 30,Ddsf, 101,I2C, diff --git a/build/CodeGen/result_namespaces.csv b/build/CodeGen/result_namespaces.csv index cde30327..50b8f1ba 100644 --- a/build/CodeGen/result_namespaces.csv +++ b/build/CodeGen/result_namespaces.csv @@ -7,6 +7,8 @@ Dd,, Lr,,Lr/ResultLr.cs Loader,,Loader/ResultLoader.cs Sf,,Sf/ResultSf.cs +Sf.Cmif,Cmif,Sf/Cmif/ResultCmif.cs +Sf.Impl,SfImpl,Sf/Impl/ResultSfImpl.cs Hipc,, Dnmt,, Pm,, @@ -14,7 +16,7 @@ Ns,, Kvdb,,Kvdb/ResultKvdb.cs Sm,,Sm/ResultSm.cs Ro,, -FsSrv,Sdmmc,FsSrv/ResultSdmmc.cs +Sdmmc,,Sdmmc/ResultSdmmc.cs Spl,,Spl/ResultSpl.cs Ddsf,, I2C,, diff --git a/build/CodeGen/results.csv b/build/CodeGen/results.csv index 7245c4d4..a2fb948c 100644 --- a/build/CodeGen/results.csv +++ b/build/CodeGen/results.csv @@ -841,21 +841,24 @@ Module,DescriptionStart,DescriptionEnd,Flags,Namespace,Name,Summary 10,1,,,,NotSupported, 10,3,,,,PreconditionViolation, -# These should be in the sf::cmif namespace -10,202,,,,InvalidHeaderSize, -10,211,,,,InvalidInHeader, -10,221,,,,UnknownCommandId, -10,232,,,,InvalidOutRawSize, -10,235,,,,InvalidNumInObjects, -10,236,,,,InvalidNumOutObjects, -10,239,,,,InvalidInObject, -10,261,,,,TargetNotFound, -10,301,,,,OutOfDomainEntries, +10,10,19,,,MemoryAllocationFailed, +10,11,,,Sf.Cmif,CmifProxyAllocationFailed, -# These should be in the sf::impl namespace -10,800,899,a,,RequestContextChanged, -10,801,809,a,,RequestInvalidated, -10,802,,,,RequestInvalidatedByUser, +10,202,,,Sf.Cmif,InvalidCmifHeaderSize, +10,211,,,Sf.Cmif,InvalidCmifInHeader, +10,212,,,Sf.Cmif,InvalidCmifOutHeader, +10,221,,,Sf.Cmif,UnknownMethodId, +10,231,,,Sf.Cmif,InvalidInRawSize, +10,232,,,Sf.Cmif,InvalidOutRawSize, +10,235,,,Sf.Cmif,InvalidInObjectCount, +10,236,,,Sf.Cmif,InvalidOutObjectCount, +10,239,,,Sf.Cmif,InvalidInObject, +10,261,,,Sf.Cmif,TargetObjectNotFound, +10,301,,,Sf.Cmif,OutOfDomainEntry, + +10,800,899,a,Sf.Impl,RequestContextChanged, +10,801,809,a,Sf.Impl,RequestInvalidated, +10,802,,,Sf.Impl,RequestInvalidatedByUser, 10,811,819,a,,RequestDeferred, 10,812,,,,RequestDeferredByUser, diff --git a/src/LibHac/Fs/Shim/Host.cs b/src/LibHac/Fs/Shim/Host.cs index bae6e674..9d0c1982 100644 --- a/src/LibHac/Fs/Shim/Host.cs +++ b/src/LibHac/Fs/Shim/Host.cs @@ -3,7 +3,6 @@ using System.Diagnostics; using System.Runtime.CompilerServices; using LibHac.Common; using LibHac.Fs.Impl; -using LibHac.FsSrv; using LibHac.FsSrv.Sf; using LibHac.FsSystem; using LibHac.Util; diff --git a/src/LibHac/Fs/Shim/SaveDataManagement.cs b/src/LibHac/Fs/Shim/SaveDataManagement.cs index 7cc125eb..9fbb728c 100644 --- a/src/LibHac/Fs/Shim/SaveDataManagement.cs +++ b/src/LibHac/Fs/Shim/SaveDataManagement.cs @@ -1,7 +1,6 @@ using System; using System.Runtime.InteropServices; using LibHac.Diag; -using LibHac.FsSrv; using LibHac.FsSrv.Sf; using LibHac.Ncm; using LibHac.Sf; diff --git a/src/LibHac/Fs/Shim/SdCard.cs b/src/LibHac/Fs/Shim/SdCard.cs index 63413f00..8492860e 100644 --- a/src/LibHac/Fs/Shim/SdCard.cs +++ b/src/LibHac/Fs/Shim/SdCard.cs @@ -1,7 +1,6 @@ using System; using LibHac.Common; using LibHac.Fs.Impl; -using LibHac.FsSrv; using LibHac.FsSrv.Sf; using IFileSystemSf = LibHac.FsSrv.Sf.IFileSystem; diff --git a/src/LibHac/Sdmmc/ResultSdmmc.cs b/src/LibHac/Sdmmc/ResultSdmmc.cs new file mode 100644 index 00000000..89a589e3 --- /dev/null +++ b/src/LibHac/Sdmmc/ResultSdmmc.cs @@ -0,0 +1,185 @@ +//----------------------------------------------------------------------------- +// This file was automatically generated. +// Changes to this file will be lost when the file is regenerated. +// +// To change this file, modify /build/CodeGen/results.csv at the root of this +// repo and run the build script. +// +// The script can be run with the "codegen" option to run only the +// code generation portion of the build. +//----------------------------------------------------------------------------- + +using System.Runtime.CompilerServices; + +namespace LibHac.Sdmmc +{ + public static class ResultSdmmc + { + public const int ModuleSdmmc = 24; + + /// Error code: 2024-0001; Inner value: 0x218 + public static Result.Base NoDevice => new Result.Base(ModuleSdmmc, 1); + /// Error code: 2024-0002; Inner value: 0x418 + public static Result.Base NotActivated => new Result.Base(ModuleSdmmc, 2); + /// Error code: 2024-0003; Inner value: 0x618 + public static Result.Base DeviceRemoved => new Result.Base(ModuleSdmmc, 3); + /// Error code: 2024-0004; Inner value: 0x818 + public static Result.Base NotAwakened => new Result.Base(ModuleSdmmc, 4); + + /// Error code: 2024-0032; Range: 32-126; Inner value: 0x4018 + public static Result.Base CommunicationError => new Result.Base(ModuleSdmmc, 32, 126); + /// Error code: 2024-0033; Range: 33-46; Inner value: 0x4218 + public static Result.Base CommunicationNotAttained => new Result.Base(ModuleSdmmc, 33, 46); + /// Error code: 2024-0034; Inner value: 0x4418 + public static Result.Base ResponseIndexError => new Result.Base(ModuleSdmmc, 34); + /// Error code: 2024-0035; Inner value: 0x4618 + public static Result.Base ResponseEndBitError => new Result.Base(ModuleSdmmc, 35); + /// Error code: 2024-0036; Inner value: 0x4818 + public static Result.Base ResponseCrcError => new Result.Base(ModuleSdmmc, 36); + /// Error code: 2024-0037; Inner value: 0x4a18 + public static Result.Base ResponseTimeoutError => new Result.Base(ModuleSdmmc, 37); + /// Error code: 2024-0038; Inner value: 0x4c18 + public static Result.Base DataEndBitError => new Result.Base(ModuleSdmmc, 38); + /// Error code: 2024-0039; Inner value: 0x4e18 + public static Result.Base DataCrcError => new Result.Base(ModuleSdmmc, 39); + /// Error code: 2024-0040; Inner value: 0x5018 + public static Result.Base DataTimeoutError => new Result.Base(ModuleSdmmc, 40); + /// Error code: 2024-0041; Inner value: 0x5218 + public static Result.Base AutoCommandResponseIndexError => new Result.Base(ModuleSdmmc, 41); + /// Error code: 2024-0042; Inner value: 0x5418 + public static Result.Base AutoCommandResponseEndBitError => new Result.Base(ModuleSdmmc, 42); + /// Error code: 2024-0043; Inner value: 0x5618 + public static Result.Base AutoCommandResponseCrcError => new Result.Base(ModuleSdmmc, 43); + /// Error code: 2024-0044; Inner value: 0x5818 + public static Result.Base AutoCommandResponseTimeoutError => new Result.Base(ModuleSdmmc, 44); + /// Error code: 2024-0045; Inner value: 0x5a18 + public static Result.Base CommandCompleteSoftwareTimeout => new Result.Base(ModuleSdmmc, 45); + /// Error code: 2024-0046; Inner value: 0x5c18 + public static Result.Base TransferCompleteSoftwareTimeout => new Result.Base(ModuleSdmmc, 46); + + /// Error code: 2024-0048; Range: 48-70; Inner value: 0x6018 + public static Result.Base DeviceStatusHasError => new Result.Base(ModuleSdmmc, 48, 70); + /// Error code: 2024-0049; Inner value: 0x6218 + public static Result.Base DeviceStatusAddressOutOfRange => new Result.Base(ModuleSdmmc, 49); + /// Error code: 2024-0050; Inner value: 0x6418 + public static Result.Base DeviceStatusAddressMisaligned => new Result.Base(ModuleSdmmc, 50); + /// Error code: 2024-0051; Inner value: 0x6618 + public static Result.Base DeviceStatusBlockLenError => new Result.Base(ModuleSdmmc, 51); + /// Error code: 2024-0052; Inner value: 0x6818 + public static Result.Base DeviceStatusEraseSeqError => new Result.Base(ModuleSdmmc, 52); + /// Error code: 2024-0053; Inner value: 0x6a18 + public static Result.Base DeviceStatusEraseParam => new Result.Base(ModuleSdmmc, 53); + /// Error code: 2024-0054; Inner value: 0x6c18 + public static Result.Base DeviceStatusWpViolation => new Result.Base(ModuleSdmmc, 54); + /// Error code: 2024-0055; Inner value: 0x6e18 + public static Result.Base DeviceStatusLockUnlockFailed => new Result.Base(ModuleSdmmc, 55); + /// Error code: 2024-0056; Inner value: 0x7018 + public static Result.Base DeviceStatusComCrcError => new Result.Base(ModuleSdmmc, 56); + /// Error code: 2024-0057; Inner value: 0x7218 + public static Result.Base DeviceStatusIllegalCommand => new Result.Base(ModuleSdmmc, 57); + /// Error code: 2024-0058; Inner value: 0x7418 + public static Result.Base DeviceStatusDeviceEccFailed => new Result.Base(ModuleSdmmc, 58); + /// Error code: 2024-0059; Inner value: 0x7618 + public static Result.Base DeviceStatusCcError => new Result.Base(ModuleSdmmc, 59); + /// Error code: 2024-0060; Inner value: 0x7818 + public static Result.Base DeviceStatusError => new Result.Base(ModuleSdmmc, 60); + /// Error code: 2024-0061; Inner value: 0x7a18 + public static Result.Base DeviceStatusCidCsdOverwrite => new Result.Base(ModuleSdmmc, 61); + /// Error code: 2024-0062; Inner value: 0x7c18 + public static Result.Base DeviceStatusWpEraseSkip => new Result.Base(ModuleSdmmc, 62); + /// Error code: 2024-0063; Inner value: 0x7e18 + public static Result.Base DeviceStatusEraseReset => new Result.Base(ModuleSdmmc, 63); + /// Error code: 2024-0064; Inner value: 0x8018 + public static Result.Base DeviceStatusSwitchError => new Result.Base(ModuleSdmmc, 64); + + /// Error code: 2024-0072; Inner value: 0x9018 + public static Result.Base UnexpectedDeviceState => new Result.Base(ModuleSdmmc, 72); + /// Error code: 2024-0073; Inner value: 0x9218 + public static Result.Base UnexpectedDeviceCsdValue => new Result.Base(ModuleSdmmc, 73); + /// Error code: 2024-0074; Inner value: 0x9418 + public static Result.Base AbortTransactionSoftwareTimeout => new Result.Base(ModuleSdmmc, 74); + /// Error code: 2024-0075; Inner value: 0x9618 + public static Result.Base CommandInhibitCmdSoftwareTimeout => new Result.Base(ModuleSdmmc, 75); + /// Error code: 2024-0076; Inner value: 0x9818 + public static Result.Base CommandInhibitDatSoftwareTimeout => new Result.Base(ModuleSdmmc, 76); + /// Error code: 2024-0077; Inner value: 0x9a18 + public static Result.Base BusySoftwareTimeout => new Result.Base(ModuleSdmmc, 77); + /// Error code: 2024-0078; Inner value: 0x9c18 + public static Result.Base IssueTuningCommandSoftwareTimeout => new Result.Base(ModuleSdmmc, 78); + /// Error code: 2024-0079; Inner value: 0x9e18 + public static Result.Base TuningFailed => new Result.Base(ModuleSdmmc, 79); + /// Error code: 2024-0080; Inner value: 0xa018 + public static Result.Base MmcInitializationSoftwareTimeout => new Result.Base(ModuleSdmmc, 80); + /// Error code: 2024-0081; Inner value: 0xa218 + public static Result.Base MmcNotSupportExtendedCsd => new Result.Base(ModuleSdmmc, 81); + /// Error code: 2024-0082; Inner value: 0xa418 + public static Result.Base UnexpectedMmcExtendedCsdValue => new Result.Base(ModuleSdmmc, 82); + /// Error code: 2024-0083; Inner value: 0xa618 + public static Result.Base MmcEraseSoftwareTimeout => new Result.Base(ModuleSdmmc, 83); + /// Error code: 2024-0084; Inner value: 0xa818 + public static Result.Base SdCardValidationError => new Result.Base(ModuleSdmmc, 84); + /// Error code: 2024-0085; Inner value: 0xaa18 + public static Result.Base SdCardInitializationSoftwareTimeout => new Result.Base(ModuleSdmmc, 85); + /// Error code: 2024-0086; Inner value: 0xac18 + public static Result.Base SdCardGetValidRcaSoftwareTimeout => new Result.Base(ModuleSdmmc, 86); + /// Error code: 2024-0087; Inner value: 0xae18 + public static Result.Base UnexpectedSdCardAcmdDisabled => new Result.Base(ModuleSdmmc, 87); + /// Error code: 2024-0088; Inner value: 0xb018 + public static Result.Base SdCardNotSupportSwitchFunctionStatus => new Result.Base(ModuleSdmmc, 88); + /// Error code: 2024-0089; Inner value: 0xb218 + public static Result.Base UnexpectedSdCardSwitchFunctionStatus => new Result.Base(ModuleSdmmc, 89); + /// Error code: 2024-0090; Inner value: 0xb418 + public static Result.Base SdCardNotSupportAccessMode => new Result.Base(ModuleSdmmc, 90); + /// Error code: 2024-0091; Inner value: 0xb618 + public static Result.Base SdCardNot4BitBusWidthAtUhsIMode => new Result.Base(ModuleSdmmc, 91); + /// Error code: 2024-0092; Inner value: 0xb818 + public static Result.Base SdCardNotSupportSdr104AndSdr50 => new Result.Base(ModuleSdmmc, 92); + /// Error code: 2024-0093; Inner value: 0xba18 + public static Result.Base SdCardCannotSwitchAccessMode => new Result.Base(ModuleSdmmc, 93); + /// Error code: 2024-0094; Inner value: 0xbc18 + public static Result.Base SdCardFailedSwitchAccessMode => new Result.Base(ModuleSdmmc, 94); + /// Error code: 2024-0095; Inner value: 0xbe18 + public static Result.Base SdCardUnacceptableCurrentConsumption => new Result.Base(ModuleSdmmc, 95); + /// Error code: 2024-0096; Inner value: 0xc018 + public static Result.Base SdCardNotReadyToVoltageSwitch => new Result.Base(ModuleSdmmc, 96); + /// Error code: 2024-0097; Inner value: 0xc218 + public static Result.Base SdCardNotCompleteVoltageSwitch => new Result.Base(ModuleSdmmc, 97); + + /// Error code: 2024-0128; Range: 128-158; Inner value: 0x10018 + public static Result.Base HostControllerUnexpected { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleSdmmc, 128, 158); } + /// Error code: 2024-0129; Inner value: 0x10218 + public static Result.Base InternalClockStableSoftwareTimeout => new Result.Base(ModuleSdmmc, 129); + /// Error code: 2024-0130; Inner value: 0x10418 + public static Result.Base SdHostStandardUnknownAutoCmdError => new Result.Base(ModuleSdmmc, 130); + /// Error code: 2024-0131; Inner value: 0x10618 + public static Result.Base SdHostStandardUnknownError => new Result.Base(ModuleSdmmc, 131); + /// Error code: 2024-0132; Inner value: 0x10818 + public static Result.Base SdmmcDllCalibrationSoftwareTimeout => new Result.Base(ModuleSdmmc, 132); + /// Error code: 2024-0133; Inner value: 0x10a18 + public static Result.Base SdmmcDllApplicationSoftwareTimeout => new Result.Base(ModuleSdmmc, 133); + /// Error code: 2024-0134; Inner value: 0x10c18 + public static Result.Base SdHostStandardFailSwitchTo18V => new Result.Base(ModuleSdmmc, 134); + /// Error code: 2024-0135; Inner value: 0x10e18 + public static Result.Base DriveStrengthCalibrationNotCompleted => new Result.Base(ModuleSdmmc, 135); + /// Error code: 2024-0136; Inner value: 0x11018 + public static Result.Base DriveStrengthCalibrationSoftwareTimeout => new Result.Base(ModuleSdmmc, 136); + /// Error code: 2024-0137; Inner value: 0x11218 + public static Result.Base SdmmcCompShortToGnd => new Result.Base(ModuleSdmmc, 137); + /// Error code: 2024-0138; Inner value: 0x11418 + public static Result.Base SdmmcCompOpen => new Result.Base(ModuleSdmmc, 138); + + /// Error code: 2024-0160; Range: 160-190; Inner value: 0x14018 + public static Result.Base InternalError { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleSdmmc, 160, 190); } + /// Error code: 2024-0161; Inner value: 0x14218 + public static Result.Base NoWaitedInterrupt => new Result.Base(ModuleSdmmc, 161); + /// Error code: 2024-0162; Inner value: 0x14418 + public static Result.Base WaitInterruptSoftwareTimeout => new Result.Base(ModuleSdmmc, 162); + + /// Error code: 2024-0192; Inner value: 0x18018 + public static Result.Base AbortCommandIssued => new Result.Base(ModuleSdmmc, 192); + /// Error code: 2024-0200; Inner value: 0x19018 + public static Result.Base NotSupported => new Result.Base(ModuleSdmmc, 200); + /// Error code: 2024-0201; Inner value: 0x19218 + public static Result.Base NotImplemented => new Result.Base(ModuleSdmmc, 201); + } +} diff --git a/src/LibHac/Sf/Cmif/ResultCmif.cs b/src/LibHac/Sf/Cmif/ResultCmif.cs new file mode 100644 index 00000000..f5b431a0 --- /dev/null +++ b/src/LibHac/Sf/Cmif/ResultCmif.cs @@ -0,0 +1,43 @@ +//----------------------------------------------------------------------------- +// This file was automatically generated. +// Changes to this file will be lost when the file is regenerated. +// +// To change this file, modify /build/CodeGen/results.csv at the root of this +// repo and run the build script. +// +// The script can be run with the "codegen" option to run only the +// code generation portion of the build. +//----------------------------------------------------------------------------- + +namespace LibHac.Sf.Cmif +{ + public static class ResultCmif + { + public const int ModuleSf = 10; + + /// Error code: 2010-0011; Inner value: 0x160a + public static Result.Base CmifProxyAllocationFailed => new Result.Base(ModuleSf, 11); + /// Error code: 2010-0202; Inner value: 0x1940a + public static Result.Base InvalidCmifHeaderSize => new Result.Base(ModuleSf, 202); + /// Error code: 2010-0211; Inner value: 0x1a60a + public static Result.Base InvalidCmifInHeader => new Result.Base(ModuleSf, 211); + /// Error code: 2010-0212; Inner value: 0x1a80a + public static Result.Base InvalidCmifOutHeader => new Result.Base(ModuleSf, 212); + /// Error code: 2010-0221; Inner value: 0x1ba0a + public static Result.Base UnknownMethodId => new Result.Base(ModuleSf, 221); + /// Error code: 2010-0231; Inner value: 0x1ce0a + public static Result.Base InvalidInRawSize => new Result.Base(ModuleSf, 231); + /// Error code: 2010-0232; Inner value: 0x1d00a + public static Result.Base InvalidOutRawSize => new Result.Base(ModuleSf, 232); + /// Error code: 2010-0235; Inner value: 0x1d60a + public static Result.Base InvalidInObjectCount => new Result.Base(ModuleSf, 235); + /// Error code: 2010-0236; Inner value: 0x1d80a + public static Result.Base InvalidOutObjectCount => new Result.Base(ModuleSf, 236); + /// Error code: 2010-0239; Inner value: 0x1de0a + public static Result.Base InvalidInObject => new Result.Base(ModuleSf, 239); + /// Error code: 2010-0261; Inner value: 0x20a0a + public static Result.Base TargetObjectNotFound => new Result.Base(ModuleSf, 261); + /// Error code: 2010-0301; Inner value: 0x25a0a + public static Result.Base OutOfDomainEntry => new Result.Base(ModuleSf, 301); + } +} diff --git a/src/LibHac/Sf/Impl/ResultSfImpl.cs b/src/LibHac/Sf/Impl/ResultSfImpl.cs new file mode 100644 index 00000000..f3d84f54 --- /dev/null +++ b/src/LibHac/Sf/Impl/ResultSfImpl.cs @@ -0,0 +1,27 @@ +//----------------------------------------------------------------------------- +// This file was automatically generated. +// Changes to this file will be lost when the file is regenerated. +// +// To change this file, modify /build/CodeGen/results.csv at the root of this +// repo and run the build script. +// +// The script can be run with the "codegen" option to run only the +// code generation portion of the build. +//----------------------------------------------------------------------------- + +using System.Runtime.CompilerServices; + +namespace LibHac.Sf.Impl +{ + public static class ResultSfImpl + { + public const int ModuleSf = 10; + + /// Error code: 2010-0800; Range: 800-899 + public static Result.Base.Abstract RequestContextChanged { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base.Abstract(ModuleSf, 800, 899); } + /// Error code: 2010-0801; Range: 801-809 + public static Result.Base.Abstract RequestInvalidated { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base.Abstract(ModuleSf, 801, 809); } + /// Error code: 2010-0802; Inner value: 0x6440a + public static Result.Base RequestInvalidatedByUser => new Result.Base(ModuleSf, 802); + } +} diff --git a/src/LibHac/Sf/ResultSf.cs b/src/LibHac/Sf/ResultSf.cs index 66ad7757..e22a4a91 100644 --- a/src/LibHac/Sf/ResultSf.cs +++ b/src/LibHac/Sf/ResultSf.cs @@ -21,35 +21,13 @@ namespace LibHac.Sf public static Result.Base NotSupported => new Result.Base(ModuleSf, 1); /// Error code: 2010-0003; Inner value: 0x60a public static Result.Base PreconditionViolation => new Result.Base(ModuleSf, 3); - /// Error code: 2010-0202; Inner value: 0x1940a - public static Result.Base InvalidHeaderSize => new Result.Base(ModuleSf, 202); - /// Error code: 2010-0211; Inner value: 0x1a60a - public static Result.Base InvalidInHeader => new Result.Base(ModuleSf, 211); - /// Error code: 2010-0221; Inner value: 0x1ba0a - public static Result.Base UnknownCommandId => new Result.Base(ModuleSf, 221); - /// Error code: 2010-0232; Inner value: 0x1d00a - public static Result.Base InvalidOutRawSize => new Result.Base(ModuleSf, 232); - /// Error code: 2010-0235; Inner value: 0x1d60a - public static Result.Base InvalidNumInObjects => new Result.Base(ModuleSf, 235); - /// Error code: 2010-0236; Inner value: 0x1d80a - public static Result.Base InvalidNumOutObjects => new Result.Base(ModuleSf, 236); - /// Error code: 2010-0239; Inner value: 0x1de0a - public static Result.Base InvalidInObject => new Result.Base(ModuleSf, 239); - /// Error code: 2010-0261; Inner value: 0x20a0a - public static Result.Base TargetNotFound => new Result.Base(ModuleSf, 261); - /// Error code: 2010-0301; Inner value: 0x25a0a - public static Result.Base OutOfDomainEntries => new Result.Base(ModuleSf, 301); - /// Error code: 2010-0800; Range: 800-899 - public static Result.Base.Abstract RequestContextChanged { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base.Abstract(ModuleSf, 800, 899); } - /// Error code: 2010-0801; Range: 801-809 - public static Result.Base.Abstract RequestInvalidated { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base.Abstract(ModuleSf, 801, 809); } - /// Error code: 2010-0802; Inner value: 0x6440a - public static Result.Base RequestInvalidatedByUser => new Result.Base(ModuleSf, 802); + /// Error code: 2010-0010; Range: 10-19; Inner value: 0x140a + public static Result.Base MemoryAllocationFailed => new Result.Base(ModuleSf, 10, 19); - /// Error code: 2010-0811; Range: 811-819 - public static Result.Base.Abstract RequestDeferred { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base.Abstract(ModuleSf, 811, 819); } - /// Error code: 2010-0812; Inner value: 0x6580a - public static Result.Base RequestDeferredByUser => new Result.Base(ModuleSf, 812); + /// Error code: 2010-0811; Range: 811-819 + public static Result.Base.Abstract RequestDeferred { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base.Abstract(ModuleSf, 811, 819); } + /// Error code: 2010-0812; Inner value: 0x6580a + public static Result.Base RequestDeferredByUser => new Result.Base(ModuleSf, 812); } }