From 0dc556d69ed67d60acac97a1ead335570f903a57 Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Thu, 10 Nov 2022 23:13:27 -0700 Subject: [PATCH] Do code formatting in the build project and generated code --- build/CodeGen/Common.cs | 18 +- build/CodeGen/IndentingStringBuilder.cs | 9 +- build/CodeGen/Stage1/ResultCodegen.cs | 5 +- build/CodeGen/Stage2/KeysCodeGen.cs | 4 +- build/CodeGen/Stage2/RunStage2.cs | 1 + build/RepackNuget.cs | 2 +- src/LibHac/Common/Keys/DefaultKeySet.Empty.cs | 2 +- src/LibHac/Common/ResultLibHac.cs | 2 +- src/LibHac/Fs/ResultFs.cs | 2 +- src/LibHac/FsSrv/ResultSdmmc.cs | 184 ------------------ src/LibHac/Kvdb/ResultKvdb.cs | 2 +- src/LibHac/Loader/ResultLoader.cs | 2 +- src/LibHac/Lr/ResultLr.cs | 2 +- src/LibHac/Ncm/ResultNcm.cs | 2 +- src/LibHac/Sdmmc/ResultSdmmc.cs | 2 +- src/LibHac/Sf/Cmif/ResultCmif.cs | 2 +- src/LibHac/Sf/Impl/ResultSfImpl.cs | 2 +- src/LibHac/Sf/ResultSf.cs | 2 +- src/LibHac/Sm/ResultSm.cs | 2 +- src/LibHac/Spl/ResultSpl.cs | 2 +- src/LibHac/Svc/ResultSvc.cs | 2 +- 21 files changed, 44 insertions(+), 207 deletions(-) delete mode 100644 src/LibHac/FsSrv/ResultSdmmc.cs diff --git a/build/CodeGen/Common.cs b/build/CodeGen/Common.cs index e7cac139..e099466d 100644 --- a/build/CodeGen/Common.cs +++ b/build/CodeGen/Common.cs @@ -25,6 +25,20 @@ public static class Common "//-----------------------------------------------------------------------------"; } + private static void WriteToLog(string message) + { + // If the logger is of type "SilentLogger", we're probably running as a separate process from nuke, + // so we want to log to the console so the nuke instance that launched us will get our output. + if (Serilog.Log.Logger.GetType().Name.Contains("SilentLogger")) + { + Console.WriteLine(message); + } + else + { + Serilog.Log.Debug(message); + } + } + // Write the file only if it has changed // Preserve the UTF-8 BOM usage if the file already exists public static void WriteOutput(string relativePath, string text) @@ -67,11 +81,11 @@ public static class Common if (oldFile?.SequenceEqual(newFile) == true) { - Serilog.Log.Debug($"{relativePath} is already up-to-date"); + WriteToLog($"{relativePath} is already up-to-date"); return; } - Serilog.Log.Debug($"Generated file {relativePath}"); + WriteToLog($"Generated file {relativePath}"); File.WriteAllBytes(fullPath, newFile); } diff --git a/build/CodeGen/IndentingStringBuilder.cs b/build/CodeGen/IndentingStringBuilder.cs index b734566a..99792854 100644 --- a/build/CodeGen/IndentingStringBuilder.cs +++ b/build/CodeGen/IndentingStringBuilder.cs @@ -75,6 +75,13 @@ public class IndentingStringBuilder return this; } + public IndentingStringBuilder DecreaseAndAppend(string value) + { + DecreaseLevel(); + Append(value); + return this; + } + private void IndentIfNeeded() { if (!_hasIndentedCurrentLine) @@ -85,4 +92,4 @@ public class IndentingStringBuilder } public override string ToString() => _sb.ToString(); -} +} \ No newline at end of file diff --git a/build/CodeGen/Stage1/ResultCodegen.cs b/build/CodeGen/Stage1/ResultCodegen.cs index f241d620..50e9839e 100644 --- a/build/CodeGen/Stage1/ResultCodegen.cs +++ b/build/CodeGen/Stage1/ResultCodegen.cs @@ -295,8 +295,7 @@ public static class ResultCodeGen sb.DecreaseLevel(); } - sb.DecreaseAndAppendLine("}"); - + sb.DecreaseAndAppend("}"); return sb.ToString(); } @@ -405,7 +404,7 @@ public static class ResultCodeGen sb.AppendLine(); sb.DecreaseAndAppendLine("};"); - sb.DecreaseAndAppendLine("}"); + sb.DecreaseAndAppend("}"); return sb.ToString(); } diff --git a/build/CodeGen/Stage2/KeysCodeGen.cs b/build/CodeGen/Stage2/KeysCodeGen.cs index 9e5152f8..3b483bf3 100644 --- a/build/CodeGen/Stage2/KeysCodeGen.cs +++ b/build/CodeGen/Stage2/KeysCodeGen.cs @@ -49,7 +49,7 @@ public static class KeysCodeGen BuildArray(sb, "RsaSigningKeysProd", SpanHelpers.AsReadOnlyByteSpan(in keySet.KeyStruct.RsaSigningKeysProd)); BuildArray(sb, "RsaKeys", SpanHelpers.AsReadOnlyByteSpan(in keySet.KeyStruct.RsaKeys)); - sb.DecreaseAndAppendLine("}"); + sb.DecreaseAndAppend("}"); return sb.ToString(); } @@ -145,7 +145,7 @@ public static class KeysCodeGen private static ReadOnlySpan StandardPublicExponent => new byte[] { - 0x01, 0x00, 0x01 + 0x01, 0x00, 0x01 }; private static ReadOnlySpan BetaNca0Modulus => new byte[] diff --git a/build/CodeGen/Stage2/RunStage2.cs b/build/CodeGen/Stage2/RunStage2.cs index fb01b94c..8094c7b3 100644 --- a/build/CodeGen/Stage2/RunStage2.cs +++ b/build/CodeGen/Stage2/RunStage2.cs @@ -9,6 +9,7 @@ namespace LibHacBuild.CodeGen.Stage2; public static class RunStage2 { private const string SolutionFileName = "LibHac.sln"; + public static int Main(string[] args) { if (!File.Exists(SolutionFileName)) diff --git a/build/RepackNuget.cs b/build/RepackNuget.cs index f2f6c57b..d3af010d 100644 --- a/build/RepackNuget.cs +++ b/build/RepackNuget.cs @@ -132,4 +132,4 @@ public partial class Build { return BitConverter.ToString(arr).ToLower().Replace("-", ""); } -} +} \ No newline at end of file diff --git a/src/LibHac/Common/Keys/DefaultKeySet.Empty.cs b/src/LibHac/Common/Keys/DefaultKeySet.Empty.cs index c65f2cdd..cbba6f1a 100644 --- a/src/LibHac/Common/Keys/DefaultKeySet.Empty.cs +++ b/src/LibHac/Common/Keys/DefaultKeySet.Empty.cs @@ -15,4 +15,4 @@ internal static partial class DefaultKeySet private static ReadOnlySpan RsaSigningKeysDev => new byte[] { }; private static ReadOnlySpan RsaSigningKeysProd => new byte[] { }; private static ReadOnlySpan RsaKeys => new byte[] { }; -} +} \ No newline at end of file diff --git a/src/LibHac/Common/ResultLibHac.cs b/src/LibHac/Common/ResultLibHac.cs index 6d1f0787..78b1e71d 100644 --- a/src/LibHac/Common/ResultLibHac.cs +++ b/src/LibHac/Common/ResultLibHac.cs @@ -92,4 +92,4 @@ public static class ResultLibHac public static Result.Base InvalidPackage1MarikoBodySize => new Result.Base(ModuleLibHac, 1042); /// Error code: 2428-1043; Inner value: 0x827ac public static Result.Base InvalidPackage1Pk11Size => new Result.Base(ModuleLibHac, 1043); -} +} \ No newline at end of file diff --git a/src/LibHac/Fs/ResultFs.cs b/src/LibHac/Fs/ResultFs.cs index b5c576c7..fb10f0dc 100644 --- a/src/LibHac/Fs/ResultFs.cs +++ b/src/LibHac/Fs/ResultFs.cs @@ -2161,4 +2161,4 @@ public static class ResultFs public static Result.Base DbmDirectoryNameTooLong => new Result.Base(ModuleFs, 7916); /// Error code: 2002-7917; Inner value: 0x3dda02 public static Result.Base DbmFileNameTooLong => new Result.Base(ModuleFs, 7917); -} +} \ No newline at end of file diff --git a/src/LibHac/FsSrv/ResultSdmmc.cs b/src/LibHac/FsSrv/ResultSdmmc.cs deleted file mode 100644 index e4269f54..00000000 --- a/src/LibHac/FsSrv/ResultSdmmc.cs +++ /dev/null @@ -1,184 +0,0 @@ -//----------------------------------------------------------------------------- -// 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.FsSrv; - -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/Kvdb/ResultKvdb.cs b/src/LibHac/Kvdb/ResultKvdb.cs index f0c4aa6b..e4374f9f 100644 --- a/src/LibHac/Kvdb/ResultKvdb.cs +++ b/src/LibHac/Kvdb/ResultKvdb.cs @@ -29,4 +29,4 @@ public static class ResultKvdb public static Result.Base InvalidFileSystemState => new Result.Base(ModuleKvdb, 8); /// Error code: 2020-0009; Inner value: 0x1214 public static Result.Base NotCreated => new Result.Base(ModuleKvdb, 9); -} +} \ No newline at end of file diff --git a/src/LibHac/Loader/ResultLoader.cs b/src/LibHac/Loader/ResultLoader.cs index d040d34d..e27c132c 100644 --- a/src/LibHac/Loader/ResultLoader.cs +++ b/src/LibHac/Loader/ResultLoader.cs @@ -87,4 +87,4 @@ public static class ResultLoader public static Result.Base InvalidCapabilityDebugFlags => new Result.Base(ModuleLoader, 116); /// Error code: 2009-0200; Inner value: 0x19009 public static Result.Base InternalError => new Result.Base(ModuleLoader, 200); -} +} \ No newline at end of file diff --git a/src/LibHac/Lr/ResultLr.cs b/src/LibHac/Lr/ResultLr.cs index 311e9488..325be8b5 100644 --- a/src/LibHac/Lr/ResultLr.cs +++ b/src/LibHac/Lr/ResultLr.cs @@ -37,4 +37,4 @@ public static class ResultLr public static Result.Base DebugProgramNotFound => new Result.Base(ModuleLr, 10); /// Error code: 2008-0090; Inner value: 0xb408 public static Result.Base TooManyRegisteredPaths => new Result.Base(ModuleLr, 90); -} +} \ No newline at end of file diff --git a/src/LibHac/Ncm/ResultNcm.cs b/src/LibHac/Ncm/ResultNcm.cs index 3ba7b831..f7efbed6 100644 --- a/src/LibHac/Ncm/ResultNcm.cs +++ b/src/LibHac/Ncm/ResultNcm.cs @@ -109,4 +109,4 @@ public static class ResultNcm public static Result.Base InvalidArgument { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => new Result.Base(ModuleNcm, 8181, 8191); } /// Error code: 2005-8182; Inner value: 0x3fec05 public static Result.Base InvalidOffset => new Result.Base(ModuleNcm, 8182); -} +} \ No newline at end of file diff --git a/src/LibHac/Sdmmc/ResultSdmmc.cs b/src/LibHac/Sdmmc/ResultSdmmc.cs index c0f37aae..8005fb9d 100644 --- a/src/LibHac/Sdmmc/ResultSdmmc.cs +++ b/src/LibHac/Sdmmc/ResultSdmmc.cs @@ -181,4 +181,4 @@ public static class ResultSdmmc 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); -} +} \ No newline at end of file diff --git a/src/LibHac/Sf/Cmif/ResultCmif.cs b/src/LibHac/Sf/Cmif/ResultCmif.cs index 75a895ea..d41d539c 100644 --- a/src/LibHac/Sf/Cmif/ResultCmif.cs +++ b/src/LibHac/Sf/Cmif/ResultCmif.cs @@ -39,4 +39,4 @@ public static class ResultCmif 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); -} +} \ No newline at end of file diff --git a/src/LibHac/Sf/Impl/ResultSfImpl.cs b/src/LibHac/Sf/Impl/ResultSfImpl.cs index f9609885..206a8bdb 100644 --- a/src/LibHac/Sf/Impl/ResultSfImpl.cs +++ b/src/LibHac/Sf/Impl/ResultSfImpl.cs @@ -23,4 +23,4 @@ public static class ResultSfImpl 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); -} +} \ No newline at end of file diff --git a/src/LibHac/Sf/ResultSf.cs b/src/LibHac/Sf/ResultSf.cs index 9fe2a7b9..e70b1aad 100644 --- a/src/LibHac/Sf/ResultSf.cs +++ b/src/LibHac/Sf/ResultSf.cs @@ -29,4 +29,4 @@ public static class ResultSf 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); -} +} \ No newline at end of file diff --git a/src/LibHac/Sm/ResultSm.cs b/src/LibHac/Sm/ResultSm.cs index 63551c78..1b5758bc 100644 --- a/src/LibHac/Sm/ResultSm.cs +++ b/src/LibHac/Sm/ResultSm.cs @@ -33,4 +33,4 @@ public static class ResultSm public static Result.Base NotAllowed => new Result.Base(ModuleSm, 8); /// Error code: 2021-0009; Inner value: 0x1215 public static Result.Base TooLargeAccessControl => new Result.Base(ModuleSm, 9); -} +} \ No newline at end of file diff --git a/src/LibHac/Spl/ResultSpl.cs b/src/LibHac/Spl/ResultSpl.cs index 76872009..6497295f 100644 --- a/src/LibHac/Spl/ResultSpl.cs +++ b/src/LibHac/Spl/ResultSpl.cs @@ -48,4 +48,4 @@ public static class ResultSpl public static Result.Base BootReasonNotSet => new Result.Base(ModuleSpl, 107); /// Error code: 2026-0108; Inner value: 0xd81a public static Result.Base InvalidArgument => new Result.Base(ModuleSpl, 108); -} +} \ No newline at end of file diff --git a/src/LibHac/Svc/ResultSvc.cs b/src/LibHac/Svc/ResultSvc.cs index 1f9b3835..9e356cff 100644 --- a/src/LibHac/Svc/ResultSvc.cs +++ b/src/LibHac/Svc/ResultSvc.cs @@ -103,4 +103,4 @@ public static class ResultSvc public static Result.Base InvalidId => new Result.Base(ModuleSvc, 519); /// Error code: 2001-0520; Inner value: 0x41001 public static Result.Base ProcessTerminated => new Result.Base(ModuleSvc, 520); -} +} \ No newline at end of file