aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Ro/ResultCode.cs
blob: 92bb5502931873bdfee96cfe1cac75e82e6df817 (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
namespace Ryujinx.HLE.HOS.Services.Ro
{
    enum ResultCode
    {
        ModuleId       = 22,
        ErrorCodeShift = 9,

        Success = 0,

        InsufficientAddressSpace = (2 << ErrorCodeShift) | ModuleId,
        AlreadyLoaded            = (3 << ErrorCodeShift) | ModuleId,
        InvalidNro               = (4 << ErrorCodeShift) | ModuleId,
        InvalidNrr               = (6 << ErrorCodeShift) | ModuleId,
        TooManyNro               = (7 << ErrorCodeShift) | ModuleId,
        TooManyNrr               = (8 << ErrorCodeShift) | ModuleId,
        NotAuthorized            = (9 << ErrorCodeShift) | ModuleId,

        InvalidNrrType           = (10 << ErrorCodeShift) | ModuleId,

        InvalidAddress           = (1025 << ErrorCodeShift) | ModuleId,
        InvalidSize              = (1026 << ErrorCodeShift) | ModuleId,
        NotLoaded                = (1028 << ErrorCodeShift) | ModuleId,
        NotRegistered            = (1029 << ErrorCodeShift) | ModuleId,
        InvalidSession           = (1030 << ErrorCodeShift) | ModuleId,
        InvalidProcess           = (1031 << ErrorCodeShift) | ModuleId,
    }
}