aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Time/ResultCode.cs
blob: 74a57f20b70dc8b3efbfd53eeace9117b4ef355b (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
using System.Diagnostics.CodeAnalysis;

namespace Ryujinx.HLE.HOS.Services.Time
{
    [SuppressMessage("Design", "CA1069: Enums values should not be duplicated")]
    public enum ResultCode
    {
        ModuleId = 116,
        ErrorCodeShift = 9,

        Success = 0,

        TimeServiceNotInitialized = (0 << ErrorCodeShift) | ModuleId,
        PermissionDenied = (1 << ErrorCodeShift) | ModuleId,
        TimeMismatch = (102 << ErrorCodeShift) | ModuleId,
        UninitializedClock = (103 << ErrorCodeShift) | ModuleId,
        TimeNotFound = (200 << ErrorCodeShift) | ModuleId,
        Overflow = (201 << ErrorCodeShift) | ModuleId,
        LocationNameTooLong = (801 << ErrorCodeShift) | ModuleId,
        OutOfRange = (902 << ErrorCodeShift) | ModuleId,
        TimeZoneConversionFailed = (903 << ErrorCodeShift) | ModuleId,
        TimeZoneNotFound = (989 << ErrorCodeShift) | ModuleId,
        NotImplemented = (990 << ErrorCodeShift) | ModuleId,
        NetworkTimeNotAvailable = (1000 << ErrorCodeShift) | ModuleId,
        NetworkTimeTaskCanceled = (1003 << ErrorCodeShift) | ModuleId,
    }
}