hiddbg: implement DeactivateHomeButton

This commit is contained in:
Adubbz 2020-07-07 18:24:46 +10:00 committed by fincs
parent b8a095ac2f
commit ed16b7f948
2 changed files with 7 additions and 0 deletions

View File

@ -121,6 +121,9 @@ void hiddbgExit(void);
/// Gets the Service object for the actual hiddbg service session.
Service* hiddbgGetServiceSession(void);
/// Ignores subsequent home button presses.
Result hiddbgDeactivateHomeButton(void);
/// Writes the input RGB colors to the spi-flash for the specified controller (offset 0x6050 size 0x6). See hidsys.h for UniquePadId. Only available with [3.0.0+].
Result hiddbgUpdateControllerColor(u32 colorBody, u32 colorButtons, u64 UniquePadId);

View File

@ -76,6 +76,10 @@ static Result _hiddbgCmdInTmemNoOut(TransferMemory *tmem, u32 cmd_id) {
return _hiddbgCmdInHandle64NoOut(tmem->handle, tmem->size, cmd_id);
}
Result hiddbgDeactivateHomeButton(void) {
return _hiddbgCmdNoIO(110);
}
Result hiddbgUpdateControllerColor(u32 colorBody, u32 colorButtons, u64 UniquePadId) {
if (hosversionBefore(3,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);