mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
HLE: Add basic stubs to get Labo VR booting to title screen. (#4007)
* HLE: Add basic stubs to get Labo VR booting to title screen. * Address code review * Apply suggestions from code review (pt. 2) Co-authored-by: gdkchan <gab.dark.100@gmail.com> * Apply suggestions from code review (pt. 3) Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Co-authored-by: gdkchan <gab.dark.100@gmail.com> * Formatting: final batch? Co-authored-by: Ac_K <Acoustik666@gmail.com> Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Address last? bit of formatting Co-authored-by: gdkchan <gab.dark.100@gmail.com> Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Co-authored-by: Ac_K <Acoustik666@gmail.com>
This commit is contained in:
parent
e20abbf9cc
commit
52c115a1f8
1 changed files with 25 additions and 0 deletions
|
@ -298,6 +298,18 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.Sys
|
||||||
return ResultCode.Success;
|
return ResultCode.Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[CommandHipc(67)] //3.0.0+
|
||||||
|
// IsIlluminanceAvailable() -> bool
|
||||||
|
public ResultCode IsIlluminanceAvailable(ServiceCtx context)
|
||||||
|
{
|
||||||
|
// NOTE: This should call IsAmbientLightSensorAvailable through to Lbl, but there's no situation where we'd want false.
|
||||||
|
context.ResponseData.Write(true);
|
||||||
|
|
||||||
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
||||||
|
|
||||||
|
return ResultCode.Success;
|
||||||
|
}
|
||||||
|
|
||||||
[CommandHipc(68)]
|
[CommandHipc(68)]
|
||||||
// SetAutoSleepDisabled(u8)
|
// SetAutoSleepDisabled(u8)
|
||||||
public ResultCode SetAutoSleepDisabled(ServiceCtx context)
|
public ResultCode SetAutoSleepDisabled(ServiceCtx context)
|
||||||
|
@ -318,6 +330,19 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.Sys
|
||||||
return ResultCode.Success;
|
return ResultCode.Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[CommandHipc(71)] //5.0.0+
|
||||||
|
// GetCurrentIlluminanceEx() -> (bool, f32)
|
||||||
|
public ResultCode GetCurrentIlluminanceEx(ServiceCtx context)
|
||||||
|
{
|
||||||
|
// TODO: The light value should be configurable - presumably users using software that takes advantage will want control.
|
||||||
|
context.ResponseData.Write(1); // OverLimit
|
||||||
|
context.ResponseData.Write(10000f); // Lux - 10K lux is ambient light.
|
||||||
|
|
||||||
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
||||||
|
|
||||||
|
return ResultCode.Success;
|
||||||
|
}
|
||||||
|
|
||||||
[CommandHipc(80)] // 4.0.0+
|
[CommandHipc(80)] // 4.0.0+
|
||||||
// SetWirelessPriorityMode(s32 wireless_priority_mode)
|
// SetWirelessPriorityMode(s32 wireless_priority_mode)
|
||||||
public ResultCode SetWirelessPriorityMode(ServiceCtx context)
|
public ResultCode SetWirelessPriorityMode(ServiceCtx context)
|
||||||
|
|
Loading…
Reference in a new issue