Standardize todo capitalization and for/if spacing
This commit is contained in:
parent
da482945ad
commit
d3b88f24a7
12 changed files with 23 additions and 23 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -138,7 +138,7 @@ namespace Ryujinx.Audio
|
|||
public void AppendBuffer<T>(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();
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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 });
|
||||
|
||||
|
|
|
@ -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<nn::sf::NativeHandle> is a buffer or not...
|
||||
// TODO: Determine if array<nn::sf::NativeHandle> is a buffer or not...
|
||||
|
||||
Logger.PrintStub(LogClass.ServiceHid, new { appletResourceUserId, counter0, counter1 });
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace Ryujinx.Tests.Unicorn
|
|||
|
||||
public IndexedProperty(Func<TIndex, TValue> getFunc, Action<TIndex, TValue> setAction)
|
||||
{
|
||||
GetFunc = getFunc;
|
||||
GetFunc = getFunc;
|
||||
SetAction = setAction;
|
||||
}
|
||||
|
||||
|
|
|
@ -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<string>()
|
||||
.Deserialize(ref reader, formatterResolver);
|
||||
|
||||
if(Enum.TryParse<T>(enumName, out T result))
|
||||
if (Enum.TryParse<T>(enumName, out T result))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue