aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Psm/IPsmServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Psm/IPsmServer.cs')
-rw-r--r--Ryujinx.HLE/HOS/Services/Psm/IPsmServer.cs52
1 files changed, 0 insertions, 52 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Psm/IPsmServer.cs b/Ryujinx.HLE/HOS/Services/Psm/IPsmServer.cs
deleted file mode 100644
index 8dab66a1..00000000
--- a/Ryujinx.HLE/HOS/Services/Psm/IPsmServer.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-using Ryujinx.Common.Logging;
-
-namespace Ryujinx.HLE.HOS.Services.Psm
-{
- [Service("psm")]
- class IPsmServer : IpcService
- {
- enum ChargerType
- {
- None,
- ChargerOrDock,
- UsbC
- }
-
- public IPsmServer(ServiceCtx context) { }
-
- [Command(0)]
- // GetBatteryChargePercentage() -> u32
- public static ResultCode GetBatteryChargePercentage(ServiceCtx context)
- {
- int chargePercentage = 100;
-
- context.ResponseData.Write(chargePercentage);
-
- Logger.PrintStub(LogClass.ServicePsm, new { chargePercentage });
-
- return ResultCode.Success;
- }
-
- [Command(1)]
- // GetChargerType() -> u32
- public static ResultCode GetChargerType(ServiceCtx context)
- {
- ChargerType chargerType = ChargerType.ChargerOrDock;
-
- context.ResponseData.Write((int)chargerType);
-
- Logger.PrintStub(LogClass.ServicePsm, new { chargerType });
-
- return ResultCode.Success;
- }
-
- [Command(7)]
- // OpenSession() -> IPsmSession
- public ResultCode OpenSession(ServiceCtx context)
- {
- MakeObject(context, new IPsmSession(context.Device.System));
-
- return ResultCode.Success;
- }
- }
-} \ No newline at end of file