mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-08-17 06:08:43 +02:00
Stub GetTemperature (#3429)
This commit is contained in:
parent
5afd521c5a
commit
d21b403886
1 changed files with 17 additions and 4 deletions
|
@ -6,13 +6,13 @@ namespace Ryujinx.HLE.HOS.Services.Ptm.Ts
|
||||||
[Service("ts")]
|
[Service("ts")]
|
||||||
class IMeasurementServer : IpcService
|
class IMeasurementServer : IpcService
|
||||||
{
|
{
|
||||||
private const uint DefaultTemperature = 42000u;
|
private const uint DefaultTemperature = 42u;
|
||||||
|
|
||||||
public IMeasurementServer(ServiceCtx context) { }
|
public IMeasurementServer(ServiceCtx context) { }
|
||||||
|
|
||||||
[CommandHipc(3)]
|
[CommandHipc(1)]
|
||||||
// GetTemperatureMilliC(Location location) -> u32
|
// GetTemperature(Location location) -> u32
|
||||||
public ResultCode GetTemperatureMilliC(ServiceCtx context)
|
public ResultCode GetTemperature(ServiceCtx context)
|
||||||
{
|
{
|
||||||
Location location = (Location)context.RequestData.ReadByte();
|
Location location = (Location)context.RequestData.ReadByte();
|
||||||
|
|
||||||
|
@ -22,5 +22,18 @@ namespace Ryujinx.HLE.HOS.Services.Ptm.Ts
|
||||||
|
|
||||||
return ResultCode.Success;
|
return ResultCode.Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[CommandHipc(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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue