Misc cleanup (#708)

* Fix typos

* Remove unneeded using statements

* Enforce var style more

* Remove redundant qualifiers

* Fix some indentation

* Disable naming warnings on files with external enum names

* Fix build

* Mass find & replace for comments with no spacing

* Standardize todo capitalization and for/if spacing
This commit is contained in:
Alex Barney 2019-07-01 21:39:22 -05:00 committed by Ac_K
parent 10c74182ba
commit b2b736abc2
205 changed files with 1020 additions and 1041 deletions

View file

@ -13,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
_commands = new Dictionary<int, ServiceProcessRequest>
{
//...
// ...
};
}
}

View file

@ -28,7 +28,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public long PopLaunchParameter(ServiceCtx context)
{
//Only the first 0x18 bytes of the Data seems to be actually used.
// Only the first 0x18 bytes of the Data seems to be actually used.
MakeObject(context, new IStorage(StorageHelper.MakeLaunchParams()));
return 0;
@ -74,7 +74,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public long GetDisplayVersion(ServiceCtx context)
{
//FIXME: Need to check correct version on a switch.
// FIXME: Need to check correct version on a switch.
context.ResponseData.Write(1L);
context.ResponseData.Write(0L);

View file

@ -13,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
_commands = new Dictionary<int, ServiceProcessRequest>
{
//...
// ...
};
}
}

View file

@ -13,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
_commands = new Dictionary<int, ServiceProcessRequest>
{
//...
// ...
};
}
}

View file

@ -13,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
_commands = new Dictionary<int, ServiceProcessRequest>
{
//...
// ...
};
}
}

View file

@ -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);
}

View file

@ -33,7 +33,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public long Write(ServiceCtx context)
{
//TODO: Error conditions.
// TODO: Error conditions.
long writePosition = context.RequestData.ReadInt64();
(long position, long size) = context.Request.GetBufferType0x21();
@ -57,7 +57,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public long Read(ServiceCtx context)
{
//TODO: Error conditions.
// TODO: Error conditions.
long readPosition = context.RequestData.ReadInt64();
(long position, long size) = context.Request.GetBufferType0x22();

View file

@ -8,7 +8,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public static byte[] MakeLaunchParams()
{
//Size needs to be at least 0x88 bytes otherwise application errors.
// Size needs to be at least 0x88 bytes otherwise application errors.
using (MemoryStream ms = new MemoryStream())
{
BinaryWriter writer = new BinaryWriter(ms);