ryujinx/src/Ryujinx.HLE/HOS/Services/Loader/ResultCode.cs
TSRBerry 2989c163a8
editorconfig: Set default encoding to UTF-8 (#5793)
* editorconfig: Add default charset

* Change file encoding from UTF-8-BOM to UTF-8
2023-12-04 14:17:13 +01:00

46 lines
2.4 KiB
C#

using System.Diagnostics.CodeAnalysis;
namespace Ryujinx.HLE.HOS.Services.Loader
{
[SuppressMessage("Design", "CA1069: Enums values should not be duplicated")]
enum ResultCode
{
ModuleId = 9,
ErrorCodeShift = 9,
Success = 0,
ArgsTooLong = (1 << ErrorCodeShift) | ModuleId,
MaximumProcessesLoaded = (2 << ErrorCodeShift) | ModuleId,
NPDMTooBig = (3 << ErrorCodeShift) | ModuleId,
InvalidNPDM = (4 << ErrorCodeShift) | ModuleId,
InvalidNSO = (5 << ErrorCodeShift) | ModuleId,
InvalidPath = (6 << ErrorCodeShift) | ModuleId,
AlreadyRegistered = (7 << ErrorCodeShift) | ModuleId,
TitleNotFound = (8 << ErrorCodeShift) | ModuleId,
ACI0TitleIdNotMatchingRangeInACID = (9 << ErrorCodeShift) | ModuleId,
InvalidVersionInNPDM = (10 << ErrorCodeShift) | ModuleId,
InsufficientAddressSpace = (51 << ErrorCodeShift) | ModuleId,
InsufficientNRO = (52 << ErrorCodeShift) | ModuleId,
InvalidNRR = (53 << ErrorCodeShift) | ModuleId,
InvalidSignature = (54 << ErrorCodeShift) | ModuleId,
InsufficientNRORegistrations = (55 << ErrorCodeShift) | ModuleId,
InsufficientNRRRegistrations = (56 << ErrorCodeShift) | ModuleId,
NROAlreadyLoaded = (57 << ErrorCodeShift) | ModuleId,
UnalignedNRRAddress = (81 << ErrorCodeShift) | ModuleId,
BadNRRSize = (82 << ErrorCodeShift) | ModuleId,
NRRNotLoaded = (84 << ErrorCodeShift) | ModuleId,
BadNRRAddress = (85 << ErrorCodeShift) | ModuleId,
BadInitialization = (87 << ErrorCodeShift) | ModuleId,
UnknownACI0Descriptor = (100 << ErrorCodeShift) | ModuleId,
ACI0NotMatchingKernelFlagsDescriptor = (103 << ErrorCodeShift) | ModuleId,
ACI0NotMatchingSyscallMaskDescriptor = (104 << ErrorCodeShift) | ModuleId,
ACI0NotMatchingMapIoOrNormalRangeDescriptor = (106 << ErrorCodeShift) | ModuleId,
ACI0NotMatchingMapNormalPageDescriptor = (107 << ErrorCodeShift) | ModuleId,
ACI0NotMatchingInterruptPairDescriptor = (111 << ErrorCodeShift) | ModuleId,
ACI0NotMatchingApplicationTypeDescriptor = (113 << ErrorCodeShift) | ModuleId,
ACI0NotMatchingKernelReleaseVersionDescriptor = (114 << ErrorCodeShift) | ModuleId,
ACI0NotMatchingHandleTableSizeDescriptor = (115 << ErrorCodeShift) | ModuleId,
ACI0NotMatchingDebugFlagsDescriptor = (116 << ErrorCodeShift) | ModuleId,
}
}