From 3615a70cae3f89197fe185dfc5d0a47fa42151d9 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 4 Dec 2018 22:52:39 -0200 Subject: Revert "Adjust naming conventions and general refactoring in HLE Project (#490)" (#526) This reverts commit 85dbb9559ad317a657dafd24da27fec4b3f5250f. --- Ryujinx.HLE/Utilities/StructReader.cs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'Ryujinx.HLE/Utilities/StructReader.cs') diff --git a/Ryujinx.HLE/Utilities/StructReader.cs b/Ryujinx.HLE/Utilities/StructReader.cs index 441dfd19..19fd2674 100644 --- a/Ryujinx.HLE/Utilities/StructReader.cs +++ b/Ryujinx.HLE/Utilities/StructReader.cs @@ -5,41 +5,41 @@ namespace Ryujinx.HLE.Utilities { class StructReader { - private MemoryManager _memory; + private MemoryManager Memory; public long Position { get; private set; } - public StructReader(MemoryManager memory, long position) + public StructReader(MemoryManager Memory, long Position) { - _memory = memory; - Position = position; + this.Memory = Memory; + this.Position = Position; } public T Read() where T : struct { - T value = MemoryHelper.Read(_memory, Position); + T Value = MemoryHelper.Read(Memory, Position); Position += Marshal.SizeOf(); - return value; + return Value; } - public T[] Read(int size) where T : struct + public T[] Read(int Size) where T : struct { - int structSize = Marshal.SizeOf(); + int StructSize = Marshal.SizeOf(); - int count = size / structSize; + int Count = Size / StructSize; - T[] output = new T[count]; + T[] Output = new T[Count]; - for (int index = 0; index < count; index++) + for (int Index = 0; Index < Count; Index++) { - output[index] = MemoryHelper.Read(_memory, Position); + Output[Index] = MemoryHelper.Read(Memory, Position); - Position += structSize; + Position += StructSize; } - return output; + return Output; } } } -- cgit v1.2.3