diff --git a/Ryujinx.Audio/Renderers/DummyAudioOut.cs b/Ryujinx.Audio/Renderers/DummyAudioOut.cs index 5d6be3a3c0..56ae5d4f5f 100644 --- a/Ryujinx.Audio/Renderers/DummyAudioOut.cs +++ b/Ryujinx.Audio/Renderers/DummyAudioOut.cs @@ -32,7 +32,7 @@ namespace Ryujinx.Audio { int trackId; - if(!m_TrackIds.TryDequeue(out trackId)) + if (!m_TrackIds.TryDequeue(out trackId)) { trackId = ++lastTrackId; } @@ -57,7 +57,7 @@ namespace Ryujinx.Audio { m_Buffers.Enqueue(bufferTag); - if(m_ReleaseCallbacks.TryGetValue(trackID, out var callback)) + if (m_ReleaseCallbacks.TryGetValue(trackID, out var callback)) { callback?.Invoke(); } diff --git a/Ryujinx.Audio/Renderers/SoundIo/SoundIoAudioOut.cs b/Ryujinx.Audio/Renderers/SoundIo/SoundIoAudioOut.cs index f39e9cbe43..f5e4c57d9e 100644 --- a/Ryujinx.Audio/Renderers/SoundIo/SoundIoAudioOut.cs +++ b/Ryujinx.Audio/Renderers/SoundIo/SoundIoAudioOut.cs @@ -138,7 +138,7 @@ namespace Ryujinx.Audio public void AppendBuffer(int trackId, long bufferTag, T[] buffer) where T : struct { - if(m_TrackPool.TryGet(trackId, out SoundIoAudioTrack track)) + if (m_TrackPool.TryGet(trackId, out SoundIoAudioTrack track)) { track.AppendBuffer(bufferTag, buffer); } @@ -201,12 +201,12 @@ namespace Ryujinx.Audio { SoundIODevice defaultAudioDevice = audioContext.GetOutputDevice(audioContext.DefaultOutputDeviceIndex); - if(!defaultAudioDevice.IsRaw) + if (!defaultAudioDevice.IsRaw) { return defaultAudioDevice; } - for(int i = 0; i < audioContext.BackendCount; i++) + for (int i = 0; i < audioContext.BackendCount; i++) { SoundIODevice audioDevice = audioContext.GetOutputDevice(i); @@ -242,26 +242,26 @@ namespace Ryujinx.Audio context.Connect(); context.FlushEvents(); - if(backendDisconnected) + if (backendDisconnected) { return false; } - if(context.OutputDeviceCount == 0) + if (context.OutputDeviceCount == 0) { return false; } device = FindNonRawDefaultAudioDevice(context); - if(device == null || backendDisconnected) + if (device == null || backendDisconnected) { return false; } stream = device.CreateOutStream(); - if(stream == null || backendDisconnected) + if (stream == null || backendDisconnected) { return false; } @@ -274,12 +274,12 @@ namespace Ryujinx.Audio } finally { - if(stream != null) + if (stream != null) { stream.Dispose(); } - if(context != null) + if (context != null) { context.Dispose(); } diff --git a/Ryujinx.Graphics/Graphics3d/Texture/AstcPixel.cs b/Ryujinx.Graphics/Graphics3d/Texture/AstcPixel.cs index cd30accab3..2f73c62b0f 100644 --- a/Ryujinx.Graphics/Graphics3d/Texture/AstcPixel.cs +++ b/Ryujinx.Graphics/Graphics3d/Texture/AstcPixel.cs @@ -65,7 +65,7 @@ namespace Ryujinx.Graphics.Texture public void ChangeBitDepth(byte[] depth) { - for(int i = 0; i< 4; i++) + for (int i = 0; i< 4; i++) { int value = ChangeBitDepth(GetComponent(i), _bitDepth[i], depth[i]); diff --git a/Ryujinx.HLE/FileSystem/Content/ContentManager.cs b/Ryujinx.HLE/FileSystem/Content/ContentManager.cs index 67c3f2635f..3812e58082 100644 --- a/Ryujinx.HLE/FileSystem/Content/ContentManager.cs +++ b/Ryujinx.HLE/FileSystem/Content/ContentManager.cs @@ -131,7 +131,7 @@ namespace Ryujinx.HLE.FileSystem.Content } } - if(_locationEntries.ContainsKey(storageId) && _locationEntries[storageId]?.Count == 0) + if (_locationEntries.ContainsKey(storageId) && _locationEntries[storageId]?.Count == 0) { _locationEntries.Remove(storageId); } diff --git a/Ryujinx.HLE/HOS/Services/Am/IHomeMenuFunctions.cs b/Ryujinx.HLE/HOS/Services/Am/IHomeMenuFunctions.cs index a56f122517..868e0215d9 100644 --- a/Ryujinx.HLE/HOS/Services/Am/IHomeMenuFunctions.cs +++ b/Ryujinx.HLE/HOS/Services/Am/IHomeMenuFunctions.cs @@ -23,7 +23,7 @@ namespace Ryujinx.HLE.HOS.Services.Am { 21, GetPopFromGeneralChannelEvent } }; - // ToDo: Signal this Event somewhere in future. + // TODO: Signal this Event somewhere in future. _channelEvent = new KEvent(system); } diff --git a/Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs b/Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs index 898ba500df..35f40818ab 100644 --- a/Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs +++ b/Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs @@ -108,7 +108,7 @@ namespace Ryujinx.HLE.HOS.Services.Friend long position = context.Request.PtrBuff[0].Position; long size = context.Request.PtrBuff[0].Size; - // Todo: Write the buffer content. + // TODO: Write the buffer content. Logger.PrintStub(LogClass.ServiceFriend, new { UserId = uuid.ToString(), unknown0 }); diff --git a/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs b/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs index b35f068fed..7e48a18690 100644 --- a/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs +++ b/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs @@ -1014,7 +1014,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid context.Request.PtrBuff[1].Position, context.Request.PtrBuff[1].Size); - // Todo: Read all handles and values from buffer. + // TODO: Read all handles and values from buffer. Logger.PrintStub(LogClass.ServiceHid, new { appletResourceUserId, @@ -1137,7 +1137,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid long counter0 = context.RequestData.ReadInt64(); long counter1 = context.RequestData.ReadInt64(); - // Todo: Determine if array is a buffer or not... + // TODO: Determine if array is a buffer or not... Logger.PrintStub(LogClass.ServiceHid, new { appletResourceUserId, counter0, counter1 }); diff --git a/Ryujinx.HLE/HOS/Services/Ldr/IRoInterface.cs b/Ryujinx.HLE/HOS/Services/Ldr/IRoInterface.cs index 202e6df5c7..49edab59e6 100644 --- a/Ryujinx.HLE/HOS/Services/Ldr/IRoInterface.cs +++ b/Ryujinx.HLE/HOS/Services/Ldr/IRoInterface.cs @@ -523,7 +523,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldr NrrInfo info; result = ParseNrr(out info, context, nrrAddress, nrrSize); - if(result == 0) + if (result == 0) { if (_nrrInfos.Count >= MaxNrr) { diff --git a/Ryujinx.HLE/HOS/Services/Set/ISystemSettingsServer.cs b/Ryujinx.HLE/HOS/Services/Set/ISystemSettingsServer.cs index a709c9cfdb..fd8ffe5ef6 100644 --- a/Ryujinx.HLE/HOS/Services/Set/ISystemSettingsServer.cs +++ b/Ryujinx.HLE/HOS/Services/Set/ISystemSettingsServer.cs @@ -177,7 +177,7 @@ namespace Ryujinx.HLE.HOS.Services.Set long titleId = 0x0100000000000809; string contentPath = device.System.ContentManager.GetInstalledContentPath(titleId, StorageId.NandSystem, ContentType.Data); - if(string.IsNullOrWhiteSpace(contentPath)) + if (string.IsNullOrWhiteSpace(contentPath)) { return null; } diff --git a/Ryujinx.HLE/Input/HidNpadController.cs b/Ryujinx.HLE/Input/HidNpadController.cs index 45dee3cad2..0c773e86b1 100644 --- a/Ryujinx.HLE/Input/HidNpadController.cs +++ b/Ryujinx.HLE/Input/HidNpadController.cs @@ -36,7 +36,7 @@ public override void Connect(HidControllerId controllerId) { - if(HidControllerType != HidControllerType.NpadLeft && HidControllerType != HidControllerType.NpadRight) + if (HidControllerType != HidControllerType.NpadLeft && HidControllerType != HidControllerType.NpadRight) { _isHalf = false; } diff --git a/Ryujinx.Tests.Unicorn/IndexedProperty.cs b/Ryujinx.Tests.Unicorn/IndexedProperty.cs index 8d1b83f2d5..a4365026bd 100644 --- a/Ryujinx.Tests.Unicorn/IndexedProperty.cs +++ b/Ryujinx.Tests.Unicorn/IndexedProperty.cs @@ -9,7 +9,7 @@ namespace Ryujinx.Tests.Unicorn public IndexedProperty(Func getFunc, Action setAction) { - GetFunc = getFunc; + GetFunc = getFunc; SetAction = setAction; } diff --git a/Ryujinx/Configuration.cs b/Ryujinx/Configuration.cs index 106c48b55a..77895ac85d 100644 --- a/Ryujinx/Configuration.cs +++ b/Ryujinx/Configuration.cs @@ -246,7 +246,7 @@ namespace Ryujinx ServiceConfiguration.IgnoreMissingServices = Instance.IgnoreMissingServices; - if(Instance.GamepadControls.Enabled) + if (Instance.GamepadControls.Enabled) { if (GamePad.GetName(Instance.GamepadControls.Index) == "Unmapped Controller") { @@ -277,7 +277,7 @@ namespace Ryujinx string enumName = formatterResolver.GetFormatterWithVerify() .Deserialize(ref reader, formatterResolver); - if(Enum.TryParse(enumName, out T result)) + if (Enum.TryParse(enumName, out T result)) { return result; }