diff options
| author | Ac_K <Acoustik666@gmail.com> | 2019-07-14 21:04:38 +0200 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2019-07-14 16:04:38 -0300 |
| commit | 4ad3936afd4ca393a05b330e3848958e9598e910 (patch) | |
| tree | e0b3bc963230d3ea3d6cc57b5bc6caeba9233479 /Ryujinx.HLE/HOS/Services/Time/ISteadyClock.cs | |
| parent | 4926f6523d3130879e108403979ab68f1212f544 (diff) | |
Refactoring result codes (#731)
* refactoring result codes
- Add a main enum who can handle some orphalin result codes and the default `ResultCode.Success` one.
- Add sub-enum by services when it's needed.
- Remove some empty line.
- Recast all service calls to ResultCode.
- Remove some unneeded static declaration.
- Delete unused `NvHelper` class.
* NvResult is back
* Fix
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Time/ISteadyClock.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Time/ISteadyClock.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Time/ISteadyClock.cs b/Ryujinx.HLE/HOS/Services/Time/ISteadyClock.cs index 4964e616..ccf19d7d 100644 --- a/Ryujinx.HLE/HOS/Services/Time/ISteadyClock.cs +++ b/Ryujinx.HLE/HOS/Services/Time/ISteadyClock.cs @@ -13,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Services.Time [Command(0)] // GetCurrentTimePoint() -> nn::time::SteadyClockTimePoint - public long GetCurrentTimePoint(ServiceCtx context) + public ResultCode GetCurrentTimePoint(ServiceCtx context) { context.ResponseData.Write((long)(System.Diagnostics.Process.GetCurrentProcess().StartTime - DateTime.Now).TotalSeconds); @@ -22,25 +22,25 @@ namespace Ryujinx.HLE.HOS.Services.Time context.ResponseData.Write((byte)0); } - return 0; + return ResultCode.Success; } [Command(1)] // GetTestOffset() -> nn::TimeSpanType - public long GetTestOffset(ServiceCtx context) + public ResultCode GetTestOffset(ServiceCtx context) { context.ResponseData.Write(_testOffset); - return 0; + return ResultCode.Success; } [Command(2)] // SetTestOffset(nn::TimeSpanType) - public long SetTestOffset(ServiceCtx context) + public ResultCode SetTestOffset(ServiceCtx context) { _testOffset = context.RequestData.ReadUInt64(); - return 0; + return ResultCode.Success; } } }
\ No newline at end of file |
