From bab6eedccfa86bc92d87b65efd965621002b8921 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Thu, 4 Mar 2021 10:58:21 +0000 Subject: [PATCH] Fix SetStandardSteadyClockInternalOffset permission check (#2076) I happened to notice this when checking Ryu's IPC structures. After double checking with RE it seems the current check is incorrect so use the correct member to fix that. --- Ryujinx.HLE/HOS/Services/Time/IStaticServiceForGlue.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ryujinx.HLE/HOS/Services/Time/IStaticServiceForGlue.cs b/Ryujinx.HLE/HOS/Services/Time/IStaticServiceForGlue.cs index d92cb726..abe09f5e 100644 --- a/Ryujinx.HLE/HOS/Services/Time/IStaticServiceForGlue.cs +++ b/Ryujinx.HLE/HOS/Services/Time/IStaticServiceForGlue.cs @@ -78,7 +78,7 @@ namespace Ryujinx.HLE.HOS.Services.Time // SetStandardSteadyClockInternalOffset(nn::TimeSpanType internal_offset) public ResultCode SetStandardSteadyClockInternalOffset(ServiceCtx context) { - if ((_permissions & TimePermissions.BypassUninitialized) == 0) + if ((_permissions & TimePermissions.SteadyClockWritableMask) == 0) { return ResultCode.PermissionDenied; } @@ -181,4 +181,4 @@ namespace Ryujinx.HLE.HOS.Services.Time return _inner.CalculateSpanBetween(context); } } -} \ No newline at end of file +}