hidsys: add version checking to removed commands

This commit is contained in:
Michael Scire 2024-03-29 02:36:16 -07:00
parent 45afae87a9
commit 0a0c621b75
2 changed files with 44 additions and 44 deletions

View File

@ -448,7 +448,7 @@ Result hidsysIsFirmwareUpdateNeededForNotification(HidsysUniquePadId unique_pad_
/** /**
* @brief Legacy IsButtonConfigSupported. * @brief Legacy IsButtonConfigSupported.
* @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysIsButtonConfigSupported instead. * @note Only available on [10.0.0-10.2.0]. On [11.0.0-17.0.1], use \ref hidsysIsButtonConfigSupported instead.
* @param[in] unique_pad_id \ref HidsysUniquePadId * @param[in] unique_pad_id \ref HidsysUniquePadId
* @param[out] out Output bool flag. * @param[out] out Output bool flag.
*/ */
@ -456,7 +456,7 @@ Result hidsysLegacyIsButtonConfigSupported(HidsysUniquePadId unique_pad_id, bool
/** /**
* @brief IsButtonConfigSupported * @brief IsButtonConfigSupported
* @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacyIsButtonConfigSupported instead. * @note Only available on [11.0.0-17.0.1]. On [10.0.0-10.2.0], use \ref hidsysLegacyIsButtonConfigSupported instead.
* @param[in] addr \ref BtdrvAddress * @param[in] addr \ref BtdrvAddress
* @param[out] out Output bool flag. * @param[out] out Output bool flag.
*/ */
@ -464,34 +464,34 @@ Result hidsysIsButtonConfigSupported(BtdrvAddress addr, bool *out);
/** /**
* @brief IsButtonConfigEmbeddedSupported * @brief IsButtonConfigEmbeddedSupported
* @note Only available on [11.0.0+]. * @note Only available on [11.0.0-17.0.1].
* @param[out] out Output bool flag. * @param[out] out Output bool flag.
*/ */
Result hidsysIsButtonConfigEmbeddedSupported(bool *out); Result hidsysIsButtonConfigEmbeddedSupported(bool *out);
/** /**
* @brief Legacy DeleteButtonConfig. * @brief Legacy DeleteButtonConfig.
* @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysDeleteButtonConfig instead. * @note Only available on [10.0.0-10.2.0]. On [11.0.0-17.0.1], use \ref hidsysDeleteButtonConfig instead.
* @param[in] unique_pad_id \ref HidsysUniquePadId * @param[in] unique_pad_id \ref HidsysUniquePadId
*/ */
Result hidsysLegacyDeleteButtonConfig(HidsysUniquePadId unique_pad_id); Result hidsysLegacyDeleteButtonConfig(HidsysUniquePadId unique_pad_id);
/** /**
* @brief DeleteButtonConfig * @brief DeleteButtonConfig
* @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacyDeleteButtonConfig instead. * @note Only available on [11.0.0-17.0.1]. On [10.0.0-10.2.0], use \ref hidsysLegacyDeleteButtonConfig instead.
* @param[in] addr \ref BtdrvAddress * @param[in] addr \ref BtdrvAddress
*/ */
Result hidsysDeleteButtonConfig(BtdrvAddress addr); Result hidsysDeleteButtonConfig(BtdrvAddress addr);
/** /**
* @brief DeleteButtonConfigEmbedded * @brief DeleteButtonConfigEmbedded
* @note Only available on [11.0.0+]. * @note Only available on [11.0.0-17.0.1].
*/ */
Result hidsysDeleteButtonConfigEmbedded(void); Result hidsysDeleteButtonConfigEmbedded(void);
/** /**
* @brief Legacy SetButtonConfigEnabled. * @brief Legacy SetButtonConfigEnabled.
* @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysSetButtonConfigEnabled instead. * @note Only available on [10.0.0-10.2.0]. On [11.0.0-17.0.1], use \ref hidsysSetButtonConfigEnabled instead.
* @param[in] unique_pad_id \ref HidsysUniquePadId * @param[in] unique_pad_id \ref HidsysUniquePadId
* @param[in] flag Input flag. * @param[in] flag Input flag.
*/ */
@ -499,7 +499,7 @@ Result hidsysLegacySetButtonConfigEnabled(HidsysUniquePadId unique_pad_id, bool
/** /**
* @brief SetButtonConfigEnabled * @brief SetButtonConfigEnabled
* @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacySetButtonConfigEnabled instead. * @note Only available on [11.0.0-17.0.1]. On [10.0.0-10.2.0], use \ref hidsysLegacySetButtonConfigEnabled instead.
* @param[in] addr \ref BtdrvAddress * @param[in] addr \ref BtdrvAddress
* @param[in] flag Input flag. * @param[in] flag Input flag.
*/ */
@ -507,14 +507,14 @@ Result hidsysSetButtonConfigEnabled(BtdrvAddress addr, bool flag);
/** /**
* @brief SetButtonConfigEmbeddedEnabled * @brief SetButtonConfigEmbeddedEnabled
* @note Only available on [11.0.0+]. * @note Only available on [11.0.0-17.0.1].
* @param[in] flag Input flag. * @param[in] flag Input flag.
*/ */
Result hidsysSetButtonConfigEmbeddedEnabled(bool flag); Result hidsysSetButtonConfigEmbeddedEnabled(bool flag);
/** /**
* @brief Legacy IsButtonConfigEnabled. * @brief Legacy IsButtonConfigEnabled.
* @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysIsButtonConfigEnabled instead. * @note Only available on [10.0.0-10.2.0]. On [11.0.0-17.0.1], use \ref hidsysIsButtonConfigEnabled instead.
* @param[in] unique_pad_id \ref HidsysUniquePadId * @param[in] unique_pad_id \ref HidsysUniquePadId
* @param[out] out Output bool flag. * @param[out] out Output bool flag.
*/ */
@ -522,7 +522,7 @@ Result hidsysLegacyIsButtonConfigEnabled(HidsysUniquePadId unique_pad_id, bool *
/** /**
* @brief IsButtonConfigEnabled * @brief IsButtonConfigEnabled
* @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacyIsButtonConfigEnabled instead. * @note Only available on [11.0.0-17.0.1]. On [10.0.0-10.2.0], use \ref hidsysLegacyIsButtonConfigEnabled instead.
* @param[in] addr \ref BtdrvAddress * @param[in] addr \ref BtdrvAddress
* @param[in] out Output bool flag. * @param[in] out Output bool flag.
*/ */
@ -530,14 +530,14 @@ Result hidsysIsButtonConfigEnabled(BtdrvAddress addr, bool *out);
/** /**
* @brief IsButtonConfigEmbeddedEnabled * @brief IsButtonConfigEmbeddedEnabled
* @note Only available on [11.0.0+]. * @note Only available on [11.0.0-17.0.1].
* @param[out] out Output bool flag. * @param[out] out Output bool flag.
*/ */
Result hidsysIsButtonConfigEmbeddedEnabled(bool *out); Result hidsysIsButtonConfigEmbeddedEnabled(bool *out);
/** /**
* @brief Legacy SetButtonConfigEmbedded. * @brief Legacy SetButtonConfigEmbedded.
* @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysSetButtonConfigEmbedded instead. * @note Only available on [10.0.0-10.2.0]. On [11.0.0-17.0.1], use \ref hidsysSetButtonConfigEmbedded instead.
* @param[in] unique_pad_id \ref HidsysUniquePadId * @param[in] unique_pad_id \ref HidsysUniquePadId
* @param[in] config \ref HidsysButtonConfigEmbedded * @param[in] config \ref HidsysButtonConfigEmbedded
*/ */
@ -545,14 +545,14 @@ Result hidsysLegacySetButtonConfigEmbedded(HidsysUniquePadId unique_pad_id, cons
/** /**
* @brief SetButtonConfigEmbedded * @brief SetButtonConfigEmbedded
* @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacySetButtonConfigEmbedded instead. * @note Only available on [11.0.0-17.0.1]. On [10.0.0-10.2.0], use \ref hidsysLegacySetButtonConfigEmbedded instead.
* @param[in] config \ref HidsysButtonConfigEmbedded * @param[in] config \ref HidsysButtonConfigEmbedded
*/ */
Result hidsysSetButtonConfigEmbedded(const HidsysButtonConfigEmbedded *config); Result hidsysSetButtonConfigEmbedded(const HidsysButtonConfigEmbedded *config);
/** /**
* @brief Legacy SetButtonConfigFull. * @brief Legacy SetButtonConfigFull.
* @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysSetButtonConfigFull instead. * @note Only available on [10.0.0-10.2.0]. On [11.0.0-17.0.1], use \ref hidsysSetButtonConfigFull instead.
* @param[in] unique_pad_id \ref HidsysUniquePadId * @param[in] unique_pad_id \ref HidsysUniquePadId
* @param[in] config \ref HidsysButtonConfigFull * @param[in] config \ref HidsysButtonConfigFull
*/ */
@ -560,7 +560,7 @@ Result hidsysLegacySetButtonConfigFull(HidsysUniquePadId unique_pad_id, const Hi
/** /**
* @brief SetButtonConfigFull * @brief SetButtonConfigFull
* @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacySetButtonConfigFull instead. * @note Only available on [11.0.0-17.0.1]. On [10.0.0-10.2.0], use \ref hidsysLegacySetButtonConfigFull instead.
* @param[in] addr \ref BtdrvAddress * @param[in] addr \ref BtdrvAddress
* @param[in] config \ref HidsysButtonConfigFull * @param[in] config \ref HidsysButtonConfigFull
*/ */
@ -568,7 +568,7 @@ Result hidsysSetButtonConfigFull(BtdrvAddress addr, const HidsysButtonConfigFull
/** /**
* @brief Legacy SetButtonConfigLeft. * @brief Legacy SetButtonConfigLeft.
* @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysSetButtonConfigLeft instead. * @note Only available on [10.0.0-10.2.0]. On [11.0.0-17.0.1], use \ref hidsysSetButtonConfigLeft instead.
* @param[in] unique_pad_id \ref HidsysUniquePadId * @param[in] unique_pad_id \ref HidsysUniquePadId
* @param[in] config \ref HidsysButtonConfigLeft * @param[in] config \ref HidsysButtonConfigLeft
*/ */
@ -576,7 +576,7 @@ Result hidsysLegacySetButtonConfigLeft(HidsysUniquePadId unique_pad_id, const Hi
/** /**
* @brief SetButtonConfigLeft * @brief SetButtonConfigLeft
* @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacySetButtonConfigLeft instead. * @note Only available on [11.0.0-17.0.1]. On [10.0.0-10.2.0], use \ref hidsysLegacySetButtonConfigLeft instead.
* @param[in] addr \ref BtdrvAddress * @param[in] addr \ref BtdrvAddress
* @param[in] config \ref HidsysButtonConfigLeft * @param[in] config \ref HidsysButtonConfigLeft
*/ */
@ -584,7 +584,7 @@ Result hidsysSetButtonConfigLeft(BtdrvAddress addr, const HidsysButtonConfigLeft
/** /**
* @brief Legacy SetButtonConfigRight. * @brief Legacy SetButtonConfigRight.
* @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysSetButtonConfigRight instead. * @note Only available on [10.0.0-10.2.0]. On [11.0.0-17.0.1], use \ref hidsysSetButtonConfigRight instead.
* @param[in] unique_pad_id \ref HidsysUniquePadId * @param[in] unique_pad_id \ref HidsysUniquePadId
* @param[in] config \ref HidsysButtonConfigRight * @param[in] config \ref HidsysButtonConfigRight
*/ */
@ -592,7 +592,7 @@ Result hidsysLegacySetButtonConfigRight(HidsysUniquePadId unique_pad_id, const H
/** /**
* @brief SetButtonConfigRight * @brief SetButtonConfigRight
* @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacySetButtonConfigRight instead. * @note Only available on [11.0.0-17.0.1]. On [10.0.0-10.2.0], use \ref hidsysLegacySetButtonConfigRight instead.
* @param[in] addr \ref BtdrvAddress * @param[in] addr \ref BtdrvAddress
* @param[in] config \ref HidsysButtonConfigRight * @param[in] config \ref HidsysButtonConfigRight
*/ */
@ -600,7 +600,7 @@ Result hidsysSetButtonConfigRight(BtdrvAddress addr, const HidsysButtonConfigRig
/** /**
* @brief Legacy GetButtonConfigEmbedded. * @brief Legacy GetButtonConfigEmbedded.
* @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysGetButtonConfigEmbedded instead. * @note Only available on [10.0.0-10.2.0]. On [11.0.0-17.0.1], use \ref hidsysGetButtonConfigEmbedded instead.
* @param[in] unique_pad_id \ref HidsysUniquePadId * @param[in] unique_pad_id \ref HidsysUniquePadId
* @param[out] config \ref HidsysButtonConfigEmbedded * @param[out] config \ref HidsysButtonConfigEmbedded
*/ */
@ -608,14 +608,14 @@ Result hidsysLegacyGetButtonConfigEmbedded(HidsysUniquePadId unique_pad_id, Hids
/** /**
* @brief GetButtonConfigEmbedded * @brief GetButtonConfigEmbedded
* @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacyGetButtonConfigEmbedded instead. * @note Only available on [11.0.0-17.0.1]. On [10.0.0-10.2.0], use \ref hidsysLegacyGetButtonConfigEmbedded instead.
* @param[out] config \ref HidsysButtonConfigEmbedded * @param[out] config \ref HidsysButtonConfigEmbedded
*/ */
Result hidsysGetButtonConfigEmbedded(HidsysButtonConfigEmbedded *config); Result hidsysGetButtonConfigEmbedded(HidsysButtonConfigEmbedded *config);
/** /**
* @brief Legacy GetButtonConfigFull. * @brief Legacy GetButtonConfigFull.
* @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysGetButtonConfigFull instead. * @note Only available on [10.0.0-10.2.0]. On [11.0.0-17.0.1], use \ref hidsysGetButtonConfigFull instead.
* @param[in] unique_pad_id \ref HidsysUniquePadId * @param[in] unique_pad_id \ref HidsysUniquePadId
* @param[out] config \ref HidsysButtonConfigFull * @param[out] config \ref HidsysButtonConfigFull
*/ */
@ -623,7 +623,7 @@ Result hidsysLegacyGetButtonConfigFull(HidsysUniquePadId unique_pad_id, HidsysBu
/** /**
* @brief GetButtonConfigFull * @brief GetButtonConfigFull
* @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacyGetButtonConfigFull instead. * @note Only available on [11.0.0-17.0.1]. On [10.0.0-10.2.0], use \ref hidsysLegacyGetButtonConfigFull instead.
* @param[in] addr \ref BtdrvAddress * @param[in] addr \ref BtdrvAddress
* @param[out] config \ref HidsysButtonConfigFull * @param[out] config \ref HidsysButtonConfigFull
*/ */
@ -631,7 +631,7 @@ Result hidsysGetButtonConfigFull(BtdrvAddress addr, HidsysButtonConfigFull *conf
/** /**
* @brief Legacy GetButtonConfigLeft. * @brief Legacy GetButtonConfigLeft.
* @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysGetButtonConfigLeft instead. * @note Only available on [10.0.0-10.2.0]. On [11.0.0-17.0.1], use \ref hidsysGetButtonConfigLeft instead.
* @param[in] unique_pad_id \ref HidsysUniquePadId * @param[in] unique_pad_id \ref HidsysUniquePadId
* @param[out] config \ref HidsysButtonConfigLeft * @param[out] config \ref HidsysButtonConfigLeft
*/ */
@ -639,7 +639,7 @@ Result hidsysLegacyGetButtonConfigLeft(HidsysUniquePadId unique_pad_id, HidsysBu
/** /**
* @brief GetButtonConfigLeft * @brief GetButtonConfigLeft
* @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacyGetButtonConfigLeft instead. * @note Only available on [11.0.0-17.0.1]. On [10.0.0-10.2.0], use \ref hidsysLegacyGetButtonConfigLeft instead.
* @param[in] addr \ref BtdrvAddress * @param[in] addr \ref BtdrvAddress
* @param[out] config \ref HidsysButtonConfigLeft * @param[out] config \ref HidsysButtonConfigLeft
*/ */
@ -647,7 +647,7 @@ Result hidsysGetButtonConfigLeft(BtdrvAddress addr, HidsysButtonConfigLeft *conf
/** /**
* @brief Legacy GetButtonConfigRight. * @brief Legacy GetButtonConfigRight.
* @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysGetButtonConfigRight instead. * @note Only available on [10.0.0-10.2.0]. On [11.0.0-17.0.1], use \ref hidsysGetButtonConfigRight instead.
* @param[in] unique_pad_id \ref HidsysUniquePadId * @param[in] unique_pad_id \ref HidsysUniquePadId
* @param[out] config \ref HidsysButtonConfigRight * @param[out] config \ref HidsysButtonConfigRight
*/ */
@ -655,7 +655,7 @@ Result hidsysLegacyGetButtonConfigRight(HidsysUniquePadId unique_pad_id, HidsysB
/** /**
* @brief GetButtonConfigRight * @brief GetButtonConfigRight
* @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacyGetButtonConfigRight instead. * @note Only available on [11.0.0-17.0.1]. On [10.0.0-10.2.0], use \ref hidsysLegacyGetButtonConfigRight instead.
* @param[in] addr \ref BtdrvAddress * @param[in] addr \ref BtdrvAddress
* @param[out] config \ref HidsysButtonConfigRight * @param[out] config \ref HidsysButtonConfigRight
*/ */

View File

@ -497,14 +497,14 @@ Result hidsysLegacyIsButtonConfigSupported(HidsysUniquePadId unique_pad_id, bool
} }
Result hidsysIsButtonConfigSupported(BtdrvAddress addr, bool *out) { Result hidsysIsButtonConfigSupported(BtdrvAddress addr, bool *out) {
if (hosversionBefore(11,0,0)) if (hosversionBefore(11,0,0) || hosversionAtLeast(18,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _hidsysCmdInAddrOutBool(addr, out, 1200); return _hidsysCmdInAddrOutBool(addr, out, 1200);
} }
Result hidsysIsButtonConfigEmbeddedSupported(bool *out) { Result hidsysIsButtonConfigEmbeddedSupported(bool *out) {
if (hosversionBefore(11,0,0)) if (hosversionBefore(11,0,0) || hosversionAtLeast(18,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _hidsysCmdNoInOutBool(out, 1201); return _hidsysCmdNoInOutBool(out, 1201);
@ -518,14 +518,14 @@ Result hidsysLegacyDeleteButtonConfig(HidsysUniquePadId unique_pad_id) {
} }
Result hidsysDeleteButtonConfig(BtdrvAddress addr) { Result hidsysDeleteButtonConfig(BtdrvAddress addr) {
if (hosversionBefore(11,0,0)) if (hosversionBefore(11,0,0) || hosversionAtLeast(18,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _hidsysCmdInAddrNoOut(addr, 1202); return _hidsysCmdInAddrNoOut(addr, 1202);
} }
Result hidsysDeleteButtonConfigEmbedded(void) { Result hidsysDeleteButtonConfigEmbedded(void) {
if (hosversionBefore(11,0,0)) if (hosversionBefore(11,0,0) || hosversionAtLeast(18,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _hidsysCmdNoIO(1203); return _hidsysCmdNoIO(1203);
@ -539,14 +539,14 @@ Result hidsysLegacySetButtonConfigEnabled(HidsysUniquePadId unique_pad_id, bool
} }
Result hidsysSetButtonConfigEnabled(BtdrvAddress addr, bool flag) { Result hidsysSetButtonConfigEnabled(BtdrvAddress addr, bool flag) {
if (hosversionBefore(11,0,0)) if (hosversionBefore(11,0,0) || hosversionAtLeast(18,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _hidsysCmdInAddrInBoolNoOut(addr, flag, 1204); return _hidsysCmdInAddrInBoolNoOut(addr, flag, 1204);
} }
Result hidsysSetButtonConfigEmbeddedEnabled(bool flag) { Result hidsysSetButtonConfigEmbeddedEnabled(bool flag) {
if (hosversionBefore(11,0,0)) if (hosversionBefore(11,0,0) || hosversionAtLeast(18,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _hidsysCmdInBoolNoOut(flag, 1205); return _hidsysCmdInBoolNoOut(flag, 1205);
@ -560,14 +560,14 @@ Result hidsysLegacyIsButtonConfigEnabled(HidsysUniquePadId unique_pad_id, bool *
} }
Result hidsysIsButtonConfigEnabled(BtdrvAddress addr, bool *out) { Result hidsysIsButtonConfigEnabled(BtdrvAddress addr, bool *out) {
if (hosversionBefore(11,0,0)) if (hosversionBefore(11,0,0) || hosversionAtLeast(18,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _hidsysCmdInAddrInBoolNoOut(addr, out, 1206); return _hidsysCmdInAddrInBoolNoOut(addr, out, 1206);
} }
Result hidsysIsButtonConfigEmbeddedEnabled(bool *out) { Result hidsysIsButtonConfigEmbeddedEnabled(bool *out) {
if (hosversionBefore(11,0,0)) if (hosversionBefore(11,0,0) || hosversionAtLeast(18,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _hidsysCmdNoInOutBool(out, 1207); return _hidsysCmdNoInOutBool(out, 1207);
@ -581,7 +581,7 @@ Result hidsysLegacySetButtonConfigEmbedded(HidsysUniquePadId unique_pad_id, cons
} }
Result hidsysSetButtonConfigEmbedded(const HidsysButtonConfigEmbedded *config) { Result hidsysSetButtonConfigEmbedded(const HidsysButtonConfigEmbedded *config) {
if (hosversionBefore(11,0,0)) if (hosversionBefore(11,0,0) || hosversionAtLeast(18,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return serviceDispatch(&g_hidsysSrv, 1208, return serviceDispatch(&g_hidsysSrv, 1208,
@ -598,7 +598,7 @@ Result hidsysLegacySetButtonConfigFull(HidsysUniquePadId unique_pad_id, const Hi
} }
Result hidsysSetButtonConfigFull(BtdrvAddress addr, const HidsysButtonConfigFull *config) { Result hidsysSetButtonConfigFull(BtdrvAddress addr, const HidsysButtonConfigFull *config) {
if (hosversionBefore(11,0,0)) if (hosversionBefore(11,0,0) || hosversionAtLeast(18,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _hidsysCmdInAddrInBufFixedNoOut(addr, config, sizeof(*config), 1209); return _hidsysCmdInAddrInBufFixedNoOut(addr, config, sizeof(*config), 1209);
@ -612,7 +612,7 @@ Result hidsysLegacySetButtonConfigLeft(HidsysUniquePadId unique_pad_id, const Hi
} }
Result hidsysSetButtonConfigLeft(BtdrvAddress addr, const HidsysButtonConfigLeft *config) { Result hidsysSetButtonConfigLeft(BtdrvAddress addr, const HidsysButtonConfigLeft *config) {
if (hosversionBefore(11,0,0)) if (hosversionBefore(11,0,0) || hosversionAtLeast(18,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _hidsysCmdInAddrInBufFixedNoOut(addr, config, sizeof(*config), 12010); return _hidsysCmdInAddrInBufFixedNoOut(addr, config, sizeof(*config), 12010);
@ -626,7 +626,7 @@ Result hidsysLegacySetButtonConfigRight(HidsysUniquePadId unique_pad_id, const H
} }
Result hidsysSetButtonConfigRight(BtdrvAddress addr, const HidsysButtonConfigRight *config) { Result hidsysSetButtonConfigRight(BtdrvAddress addr, const HidsysButtonConfigRight *config) {
if (hosversionBefore(11,0,0)) if (hosversionBefore(11,0,0) || hosversionAtLeast(18,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _hidsysCmdInAddrInBufFixedNoOut(addr, config, sizeof(*config), 1211); return _hidsysCmdInAddrInBufFixedNoOut(addr, config, sizeof(*config), 1211);
@ -640,7 +640,7 @@ Result hidsysLegacyGetButtonConfigEmbedded(HidsysUniquePadId unique_pad_id, Hids
} }
Result hidsysGetButtonConfigEmbedded(HidsysButtonConfigEmbedded *config) { Result hidsysGetButtonConfigEmbedded(HidsysButtonConfigEmbedded *config) {
if (hosversionBefore(11,0,0)) if (hosversionBefore(11,0,0) || hosversionAtLeast(18,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return serviceDispatch(&g_hidsysSrv, 1212, return serviceDispatch(&g_hidsysSrv, 1212,
@ -657,7 +657,7 @@ Result hidsysLegacyGetButtonConfigFull(HidsysUniquePadId unique_pad_id, HidsysBu
} }
Result hidsysGetButtonConfigFull(BtdrvAddress addr, HidsysButtonConfigFull *config) { Result hidsysGetButtonConfigFull(BtdrvAddress addr, HidsysButtonConfigFull *config) {
if (hosversionBefore(11,0,0)) if (hosversionBefore(11,0,0) || hosversionAtLeast(18,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _hidsysCmdInAddrOutBufFixedNoOut(addr, config, sizeof(*config), 1213); return _hidsysCmdInAddrOutBufFixedNoOut(addr, config, sizeof(*config), 1213);
@ -671,7 +671,7 @@ Result hidsysLegacyGetButtonConfigLeft(HidsysUniquePadId unique_pad_id, HidsysBu
} }
Result hidsysGetButtonConfigLeft(BtdrvAddress addr, HidsysButtonConfigLeft *config) { Result hidsysGetButtonConfigLeft(BtdrvAddress addr, HidsysButtonConfigLeft *config) {
if (hosversionBefore(11,0,0)) if (hosversionBefore(11,0,0) || hosversionAtLeast(18,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _hidsysCmdInAddrOutBufFixedNoOut(addr, config, sizeof(*config), 1214); return _hidsysCmdInAddrOutBufFixedNoOut(addr, config, sizeof(*config), 1214);
@ -685,7 +685,7 @@ Result hidsysLegacyGetButtonConfigRight(HidsysUniquePadId unique_pad_id, HidsysB
} }
Result hidsysGetButtonConfigRight(BtdrvAddress addr, HidsysButtonConfigRight *config) { Result hidsysGetButtonConfigRight(BtdrvAddress addr, HidsysButtonConfigRight *config) {
if (hosversionBefore(11,0,0)) if (hosversionBefore(11,0,0) || hosversionAtLeast(18,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _hidsysCmdInAddrOutBufFixedNoOut(addr, config, sizeof(*config), 1215); return _hidsysCmdInAddrOutBufFixedNoOut(addr, config, sizeof(*config), 1215);