This commit is contained in:
Ac_K 2024-03-16 22:45:54 +01:00
commit 8bf68c19b2
2 changed files with 8 additions and 8 deletions

View file

@ -14,7 +14,7 @@ namespace Ryujinx.Horizon.Ptm.Ipc
public const int MaximumTemperature = 100; public const int MaximumTemperature = 100;
[CmifCommand(0)] // 1.0.0-16.1.0 [CmifCommand(0)] // 1.0.0-16.1.0
public Result GetTemperatureRange(Location location, out int minimumTemperature, out int maximumTemperature) public Result GetTemperatureRange(out int minimumTemperature, out int maximumTemperature, Location location)
{ {
Logger.Stub?.PrintStub(LogClass.ServicePtm, new { location }); Logger.Stub?.PrintStub(LogClass.ServicePtm, new { location });
@ -25,7 +25,7 @@ namespace Ryujinx.Horizon.Ptm.Ipc
} }
[CmifCommand(1)] // 1.0.0-16.1.0 [CmifCommand(1)] // 1.0.0-16.1.0
public Result GetTemperature(Location location, out int temperature) public Result GetTemperature(out int temperature, Location location)
{ {
Logger.Stub?.PrintStub(LogClass.ServicePtm, new { location }); Logger.Stub?.PrintStub(LogClass.ServicePtm, new { location });
@ -43,7 +43,7 @@ namespace Ryujinx.Horizon.Ptm.Ipc
} }
[CmifCommand(3)] // 1.0.0-13.2.1 [CmifCommand(3)] // 1.0.0-13.2.1
public Result GetTemperatureMilliC(Location location, out int temperatureMilliC) public Result GetTemperatureMilliC(out int temperatureMilliC, Location location)
{ {
Logger.Stub?.PrintStub(LogClass.ServicePtm, new { location }); Logger.Stub?.PrintStub(LogClass.ServicePtm, new { location });
@ -53,7 +53,7 @@ namespace Ryujinx.Horizon.Ptm.Ipc
} }
[CmifCommand(4)] // 8.0.0+ [CmifCommand(4)] // 8.0.0+
Result IMeasurementServer.OpenSession(DeviceCode deviceCode, out ISession session) public Result OpenSession(out ISession session, DeviceCode deviceCode)
{ {
session = new Session(deviceCode); session = new Session(deviceCode);

View file

@ -5,10 +5,10 @@ namespace Ryujinx.Horizon.Sdk.Ts
{ {
interface IMeasurementServer : IServiceObject interface IMeasurementServer : IServiceObject
{ {
Result GetTemperatureRange(Location location, out int minimumTemperature, out int maximumTemperature); Result GetTemperatureRange(out int minimumTemperature, out int maximumTemperature, Location location);
Result GetTemperature(Location location, out int temperature); Result GetTemperature(out int temperature, Location location);
Result SetMeasurementMode(Location location, byte measurementMode); Result SetMeasurementMode(Location location, byte measurementMode);
Result GetTemperatureMilliC(Location location, out int temperatureMilliC); Result GetTemperatureMilliC(out int temperatureMilliC, Location location);
Result OpenSession(DeviceCode deviceCode, out ISession session); Result OpenSession(out ISession session, DeviceCode deviceCode);
} }
} }