diff --git a/Ryujinx.HLE/HOS/Services/Bpc/IRtcManager.cs b/Ryujinx.HLE/HOS/Services/Bpc/IRtcManager.cs index 75d8540467..b2a0abe702 100644 --- a/Ryujinx.HLE/HOS/Services/Bpc/IRtcManager.cs +++ b/Ryujinx.HLE/HOS/Services/Bpc/IRtcManager.cs @@ -9,7 +9,7 @@ namespace Ryujinx.HLE.HOS.Services.Bpc [Command(0)] // GetRtcTime() -> u64 - public static ResultCode GetRtcTime(ServiceCtx context) + public ResultCode GetRtcTime(ServiceCtx context) { ResultCode result = GetExternalRtcValue(out ulong rtcValue); @@ -24,9 +24,9 @@ namespace Ryujinx.HLE.HOS.Services.Bpc public static ResultCode GetExternalRtcValue(out ulong rtcValue) { // TODO: emulate MAX77620/MAX77812 - DateTime UnixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); + DateTime unixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); - rtcValue = (ulong)(DateTime.Now.ToUniversalTime() - UnixEpoch).TotalSeconds; + rtcValue = (ulong)(DateTime.Now.ToUniversalTime() - unixEpoch).TotalSeconds; return ResultCode.Success; } diff --git a/Ryujinx.HLE/HOS/Services/Time/Clock/StandardNetworkSystemClockCore.cs b/Ryujinx.HLE/HOS/Services/Time/Clock/StandardNetworkSystemClockCore.cs index ca5a9bbf31..c00f460ef5 100644 --- a/Ryujinx.HLE/HOS/Services/Time/Clock/StandardNetworkSystemClockCore.cs +++ b/Ryujinx.HLE/HOS/Services/Time/Clock/StandardNetworkSystemClockCore.cs @@ -29,7 +29,7 @@ namespace Ryujinx.HLE.HOS.Services.Time.Clock _steadyClockCore = steadyClockCore; _context = new SystemClockContext(); - _context.SteadyTimePoint.ClockSourceId = steadyClockCore.GetClockSourceId(); + _context.SteadyTimePoint.ClockSourceId = steadyClockCore.GetClockSourceId(); _standardNetworkClockSufficientAccuracy = new TimeSpanType(0); } @@ -61,8 +61,7 @@ namespace Ryujinx.HLE.HOS.Services.Time.Clock public bool IsStandardNetworkSystemClockAccuracySufficient(KThread thread) { - SteadyClockCore steadyClockCore = GetSteadyClockCore(); - + SteadyClockCore steadyClockCore = GetSteadyClockCore(); SteadyClockTimePoint currentTimePoint = steadyClockCore.GetCurrentTimePoint(thread); bool isStandardNetworkClockSufficientAccuracy = false;