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

@ -13,13 +13,13 @@ namespace Ryujinx.HLE.HOS.Services.Psm
UsbC
}
private Dictionary<int, ServiceProcessRequest> m_Commands;
private Dictionary<int, ServiceProcessRequest> _commands;
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
public IPsmServer()
{
m_Commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>()
{
{ 0, GetBatteryChargePercentage },
{ 1, GetChargerType },
@ -28,21 +28,21 @@ namespace Ryujinx.HLE.HOS.Services.Psm
}
// GetBatteryChargePercentage() -> u32
public static long GetBatteryChargePercentage(ServiceCtx Context)
public static long GetBatteryChargePercentage(ServiceCtx context)
{
int ChargePercentage = 100;
int chargePercentage = 100;
Context.ResponseData.Write(ChargePercentage);
context.ResponseData.Write(chargePercentage);
Logger.PrintStub(LogClass.ServicePsm, $"Stubbed. ChargePercentage: {ChargePercentage}");
Logger.PrintStub(LogClass.ServicePsm, $"Stubbed. ChargePercentage: {chargePercentage}");
return 0;
}
// GetChargerType() -> u32
public static long GetChargerType(ServiceCtx Context)
public static long GetChargerType(ServiceCtx context)
{
Context.ResponseData.Write((int)ChargerType.ChargerOrDock);
context.ResponseData.Write((int)ChargerType.ChargerOrDock);
Logger.PrintStub(LogClass.ServicePsm, $"Stubbed. ChargerType: {ChargerType.ChargerOrDock}");
@ -50,9 +50,9 @@ namespace Ryujinx.HLE.HOS.Services.Psm
}
// OpenSession() -> IPsmSession
public long OpenSession(ServiceCtx Context)
public long OpenSession(ServiceCtx context)
{
MakeObject(Context, new IPsmSession(Context.Device.System));
MakeObject(context, new IPsmSession(context.Device.System));
return 0;
}