From 6c7c0f958f93da320939b0e1632d0015b79efd28 Mon Sep 17 00:00:00 2001 From: Thog Date: Thu, 3 Oct 2019 00:59:45 +0200 Subject: [PATCH] Fix code style and some typos --- Ryujinx.HLE/HOS/Services/Time/IStaticServiceForGlue.cs | 3 ++- Ryujinx.HLE/HOS/Services/Time/StaticService/ISystemClock.cs | 4 ++-- Ryujinx.HLE/HOS/Services/Time/TimeManager.cs | 2 +- .../HOS/Services/Time/TimeZone/TimeZoneContentManager.cs | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Ryujinx.HLE/HOS/Services/Time/IStaticServiceForGlue.cs b/Ryujinx.HLE/HOS/Services/Time/IStaticServiceForGlue.cs index fe4950ba02..605cbbbd7a 100644 --- a/Ryujinx.HLE/HOS/Services/Time/IStaticServiceForGlue.cs +++ b/Ryujinx.HLE/HOS/Services/Time/IStaticServiceForGlue.cs @@ -3,6 +3,7 @@ using Ryujinx.HLE.HOS.Services.Pcv.Bpc; using Ryujinx.HLE.HOS.Services.Settings; using Ryujinx.HLE.HOS.Services.Time.Clock; using Ryujinx.HLE.HOS.Services.Time.StaticService; +using System; namespace Ryujinx.HLE.HOS.Services.Time { @@ -121,7 +122,7 @@ namespace Ryujinx.HLE.HOS.Services.Time { if (!NxSettings.Settings.TryGetValue("time!standard_user_clock_initial_year", out object standardUserSystemClockInitialYear)) { - throw new System.InvalidOperationException("standard_user_clock_initial_year isn't defined in system settings!"); + throw new InvalidOperationException("standard_user_clock_initial_year isn't defined in system settings!"); } context.ResponseData.Write((int)standardUserSystemClockInitialYear); diff --git a/Ryujinx.HLE/HOS/Services/Time/StaticService/ISystemClock.cs b/Ryujinx.HLE/HOS/Services/Time/StaticService/ISystemClock.cs index c9c378f4b3..d5b21f8c95 100644 --- a/Ryujinx.HLE/HOS/Services/Time/StaticService/ISystemClock.cs +++ b/Ryujinx.HLE/HOS/Services/Time/StaticService/ISystemClock.cs @@ -14,11 +14,11 @@ namespace Ryujinx.HLE.HOS.Services.Time.StaticService private bool _bypassUninitializedClock; private int _operationEventReadableHandle; - public ISystemClock(SystemClockCore clockCore, bool writePermission, bool bypassUninitializedCloc) + public ISystemClock(SystemClockCore clockCore, bool writePermission, bool bypassUninitializedClock) { _clockCore = clockCore; _writePermission = writePermission; - _bypassUninitializedClock = bypassUninitializedCloc; + _bypassUninitializedClock = bypassUninitializedClock; _operationEventReadableHandle = 0; } diff --git a/Ryujinx.HLE/HOS/Services/Time/TimeManager.cs b/Ryujinx.HLE/HOS/Services/Time/TimeManager.cs index dcc981695b..dc91d07ee0 100644 --- a/Ryujinx.HLE/HOS/Services/Time/TimeManager.cs +++ b/Ryujinx.HLE/HOS/Services/Time/TimeManager.cs @@ -59,7 +59,7 @@ namespace Ryujinx.HLE.HOS.Services.Time { SharedMemory.Initialize(device, sharedMemory, timeSharedMemoryAddress, timeSharedMemorySize); - // Here we use system on purpose as device.System isn't initialized at this point. + // Here we use system on purpose as device. System isn't initialized at this point. StandardUserSystemClock.CreateAutomaticCorrectionEvent(system); } diff --git a/Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZoneContentManager.cs b/Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZoneContentManager.cs index 878bf07fd0..f1dd110683 100644 --- a/Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZoneContentManager.cs +++ b/Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZoneContentManager.cs @@ -74,6 +74,7 @@ namespace Ryujinx.HLE.HOS.Services.Time.TimeZone else { _locationNameCache = new string[0]; + Logger.PrintWarning(LogClass.ServiceTime, "TimeZoneBinary system archive not found! TimeZone conversions will not work, provide the system archive to fix."); } }