aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Horizon.Common/KernelResult.cs
blob: ff367ac464a0778bd7a4397f88b5743418e9e33b (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
namespace Ryujinx.Horizon.Common
{
    public static class KernelResult
    {
        private const int ModuleId = 1;

        public static Result SessionCountExceeded => new(ModuleId, 7);
        public static Result InvalidCapability => new(ModuleId, 14);
        public static Result ThreadNotStarted => new(ModuleId, 57);
        public static Result ThreadTerminating => new(ModuleId, 59);
        public static Result InvalidSize => new(ModuleId, 101);
        public static Result InvalidAddress => new(ModuleId, 102);
        public static Result OutOfResource => new(ModuleId, 103);
        public static Result OutOfMemory => new(ModuleId, 104);
        public static Result HandleTableFull => new(ModuleId, 105);
        public static Result InvalidMemState => new(ModuleId, 106);
        public static Result InvalidPermission => new(ModuleId, 108);
        public static Result InvalidMemRange => new(ModuleId, 110);
        public static Result InvalidPriority => new(ModuleId, 112);
        public static Result InvalidCpuCore => new(ModuleId, 113);
        public static Result InvalidHandle => new(ModuleId, 114);
        public static Result UserCopyFailed => new(ModuleId, 115);
        public static Result InvalidCombination => new(ModuleId, 116);
        public static Result TimedOut => new(ModuleId, 117);
        public static Result Cancelled => new(ModuleId, 118);
        public static Result MaximumExceeded => new(ModuleId, 119);
        public static Result InvalidEnumValue => new(ModuleId, 120);
        public static Result NotFound => new(ModuleId, 121);
        public static Result InvalidThread => new(ModuleId, 122);
        public static Result PortRemoteClosed => new(ModuleId, 123);
        public static Result InvalidState => new(ModuleId, 125);
        public static Result ReservedValue => new(ModuleId, 126);
        public static Result PortClosed => new(ModuleId, 131);
        public static Result ResLimitExceeded => new(ModuleId, 132);
        public static Result ReceiveListBroken => new(ModuleId, 258);
        public static Result OutOfVaSpace => new(ModuleId, 259);
        public static Result CmdBufferTooSmall => new(ModuleId, 260);
    }
}