aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Loader/ResultCode.cs
blob: 6744563d9e799fe5c9268716f4d69c98f8b12bcd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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,
    }
}