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

@ -10,14 +10,14 @@ namespace Ryujinx.HLE.HOS.Kernel
{
partial class SvcHandler
{
private delegate void SvcFunc(CpuThreadState ThreadState);
private delegate void SvcFunc(CpuThreadState threadState);
private Dictionary<int, SvcFunc> SvcFuncs;
private Dictionary<int, SvcFunc> _svcFuncs;
private Switch Device;
private KProcess Process;
private Horizon System;
private MemoryManager Memory;
private Switch _device;
private KProcess _process;
private Horizon _system;
private MemoryManager _memory;
private struct HleIpcMessage
{
@ -27,21 +27,21 @@ namespace Ryujinx.HLE.HOS.Kernel
public long MessagePtr { get; private set; }
public HleIpcMessage(
KThread Thread,
KSession Session,
IpcMessage Message,
long MessagePtr)
KThread thread,
KSession session,
IpcMessage message,
long messagePtr)
{
this.Thread = Thread;
this.Session = Session;
this.Message = Message;
this.MessagePtr = MessagePtr;
this.Thread = thread;
this.Session = session;
this.Message = message;
this.MessagePtr = messagePtr;
}
}
public SvcHandler(Switch Device, KProcess Process)
public SvcHandler(Switch device, KProcess process)
{
SvcFuncs = new Dictionary<int, SvcFunc>()
_svcFuncs = new Dictionary<int, SvcFunc>()
{
{ 0x01, SvcSetHeapSize },
{ 0x03, SvcSetMemoryAttribute },
@ -93,23 +93,23 @@ namespace Ryujinx.HLE.HOS.Kernel
{ 0x71, ManageNamedPort64 }
};
this.Device = Device;
this.Process = Process;
this.System = Device.System;
this.Memory = Process.CpuMemory;
this._device = device;
this._process = process;
this._system = device.System;
this._memory = process.CpuMemory;
}
public void SvcCall(object sender, InstExceptionEventArgs e)
{
CpuThreadState ThreadState = (CpuThreadState)sender;
CpuThreadState threadState = (CpuThreadState)sender;
if (SvcFuncs.TryGetValue(e.Id, out SvcFunc Func))
if (_svcFuncs.TryGetValue(e.Id, out SvcFunc func))
{
Logger.PrintDebug(LogClass.KernelSvc, $"{Func.Method.Name} called.");
Logger.PrintDebug(LogClass.KernelSvc, $"{func.Method.Name} called.");
Func(ThreadState);
func(threadState);
Logger.PrintDebug(LogClass.KernelSvc, $"{Func.Method.Name} ended.");
Logger.PrintDebug(LogClass.KernelSvc, $"{func.Method.Name} ended.");
}
else
{