Fix code style and some typos

This commit is contained in:
Thog 2019-10-03 00:59:45 +02:00
commit 6c7c0f958f
No known key found for this signature in database
GPG key ID: 0CD291558FAFDBC6
4 changed files with 6 additions and 4 deletions

View file

@ -3,6 +3,7 @@ using Ryujinx.HLE.HOS.Services.Pcv.Bpc;
using Ryujinx.HLE.HOS.Services.Settings; using Ryujinx.HLE.HOS.Services.Settings;
using Ryujinx.HLE.HOS.Services.Time.Clock; using Ryujinx.HLE.HOS.Services.Time.Clock;
using Ryujinx.HLE.HOS.Services.Time.StaticService; using Ryujinx.HLE.HOS.Services.Time.StaticService;
using System;
namespace Ryujinx.HLE.HOS.Services.Time 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)) 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); context.ResponseData.Write((int)standardUserSystemClockInitialYear);

View file

@ -14,11 +14,11 @@ namespace Ryujinx.HLE.HOS.Services.Time.StaticService
private bool _bypassUninitializedClock; private bool _bypassUninitializedClock;
private int _operationEventReadableHandle; private int _operationEventReadableHandle;
public ISystemClock(SystemClockCore clockCore, bool writePermission, bool bypassUninitializedCloc) public ISystemClock(SystemClockCore clockCore, bool writePermission, bool bypassUninitializedClock)
{ {
_clockCore = clockCore; _clockCore = clockCore;
_writePermission = writePermission; _writePermission = writePermission;
_bypassUninitializedClock = bypassUninitializedCloc; _bypassUninitializedClock = bypassUninitializedClock;
_operationEventReadableHandle = 0; _operationEventReadableHandle = 0;
} }

View file

@ -74,6 +74,7 @@ namespace Ryujinx.HLE.HOS.Services.Time.TimeZone
else else
{ {
_locationNameCache = new string[0]; _locationNameCache = new string[0];
Logger.PrintWarning(LogClass.ServiceTime, "TimeZoneBinary system archive not found! TimeZone conversions will not work, provide the system archive to fix."); Logger.PrintWarning(LogClass.ServiceTime, "TimeZoneBinary system archive not found! TimeZone conversions will not work, provide the system archive to fix.");
} }
} }