aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2024-04-05 20:45:43 +0200
committerGitHub <noreply@github.com>2024-04-05 15:45:43 -0300
commit6d28b643126ee5de476a89f3ff94b5cc3ead3970 (patch)
treebb6e1263f9df7aec23488b1ee22a141746c54243 /src/Ryujinx.HLE
parent05c041feeba085275259f3b434bac4535b7a46d7 (diff)
ts: Migrate service to Horizon project (#6514)
* ts: Migrate service to Horizon project This PR migrate the `ts` service (stored in `ptm`) to the Horizon project: - It stubs all known IPCs. - IpcServer consts are checked by RE. Closes #6480 * Fix args
Diffstat (limited to 'src/Ryujinx.HLE')
-rw-r--r--src/Ryujinx.HLE/HOS/Services/Ptm/Ts/IMeasurementServer.cs39
-rw-r--r--src/Ryujinx.HLE/HOS/Services/Ptm/Ts/Types/Location.cs8
2 files changed, 0 insertions, 47 deletions
diff --git a/src/Ryujinx.HLE/HOS/Services/Ptm/Ts/IMeasurementServer.cs b/src/Ryujinx.HLE/HOS/Services/Ptm/Ts/IMeasurementServer.cs
deleted file mode 100644
index 66ffd0a4..00000000
--- a/src/Ryujinx.HLE/HOS/Services/Ptm/Ts/IMeasurementServer.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using Ryujinx.Common.Logging;
-using Ryujinx.HLE.HOS.Services.Ptm.Ts.Types;
-
-namespace Ryujinx.HLE.HOS.Services.Ptm.Ts
-{
- [Service("ts")]
- class IMeasurementServer : IpcService
- {
- private const uint DefaultTemperature = 42u;
-
- public IMeasurementServer(ServiceCtx context) { }
-
- [CommandCmif(1)]
- // GetTemperature(Location location) -> u32
- public ResultCode GetTemperature(ServiceCtx context)
- {
- Location location = (Location)context.RequestData.ReadByte();
-
- Logger.Stub?.PrintStub(LogClass.ServicePtm, new { location });
-
- context.ResponseData.Write(DefaultTemperature);
-
- return ResultCode.Success;
- }
-
- [CommandCmif(3)]
- // GetTemperatureMilliC(Location location) -> u32
- public ResultCode GetTemperatureMilliC(ServiceCtx context)
- {
- Location location = (Location)context.RequestData.ReadByte();
-
- Logger.Stub?.PrintStub(LogClass.ServicePtm, new { location });
-
- context.ResponseData.Write(DefaultTemperature * 1000);
-
- return ResultCode.Success;
- }
- }
-}
diff --git a/src/Ryujinx.HLE/HOS/Services/Ptm/Ts/Types/Location.cs b/src/Ryujinx.HLE/HOS/Services/Ptm/Ts/Types/Location.cs
deleted file mode 100644
index 409188a9..00000000
--- a/src/Ryujinx.HLE/HOS/Services/Ptm/Ts/Types/Location.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-namespace Ryujinx.HLE.HOS.Services.Ptm.Ts.Types
-{
- enum Location : byte
- {
- Internal,
- External,
- }
-}