mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-27 12:05:37 +00:00
b96aa7574f
The error code was taken from Switchbrew (https://switchbrew.org/wiki/Error_codes) Even if TimeServiceNotInitialized's "description" is 0, the result "value" of "(0 << ErrorCodeShift) | ModuleId" is 0x74 so it is not the same as "Success" (0)
23 lines
959 B
C#
23 lines
959 B
C#
namespace Ryujinx.HLE.HOS.Services.Time
|
|
{
|
|
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,
|
|
}
|
|
}
|