Naming conventions

This commit is contained in:
Alex Barney
2018-12-01 14:01:59 -06:00
parent 8faae5612d
commit 77972140a6
286 changed files with 11867 additions and 11845 deletions

View File

@ -9,34 +9,34 @@ namespace Ryujinx.HLE.Loaders.Npdm
{
public IReadOnlyDictionary<string, bool> Services { get; private set; }
public ServiceAccessControl(Stream Stream, int Offset, int Size)
public ServiceAccessControl(Stream stream, int offset, int size)
{
Stream.Seek(Offset, SeekOrigin.Begin);
stream.Seek(offset, SeekOrigin.Begin);
BinaryReader Reader = new BinaryReader(Stream);
BinaryReader reader = new BinaryReader(stream);
int ByteReaded = 0;
int byteReaded = 0;
Dictionary<string, bool> Services = new Dictionary<string, bool>();
Dictionary<string, bool> services = new Dictionary<string, bool>();
while (ByteReaded != Size)
while (byteReaded != size)
{
byte ControlByte = Reader.ReadByte();
byte controlByte = reader.ReadByte();
if (ControlByte == 0)
if (controlByte == 0)
{
break;
}
int Length = (ControlByte & 0x07) + 1;
bool RegisterAllowed = (ControlByte & 0x80) != 0;
int length = (controlByte & 0x07) + 1;
bool registerAllowed = (controlByte & 0x80) != 0;
Services.Add(Encoding.ASCII.GetString(Reader.ReadBytes(Length), 0, Length), RegisterAllowed);
services.Add(Encoding.ASCII.GetString(reader.ReadBytes(length), 0, length), registerAllowed);
ByteReaded += Length + 1;
byteReaded += length + 1;
}
this.Services = new ReadOnlyDictionary<string, bool>(Services);
this.Services = new ReadOnlyDictionary<string, bool>(services);
}
}
}