mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
hidsys: Check sysver for the removed cmds with 13.0.0.
This commit is contained in:
parent
960599c4b5
commit
4ac3b0cec5
@ -656,7 +656,7 @@ Result hidsysIsButtonConfigStorageRightEmpty(s32 index, bool *out);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief GetButtonConfigStorageEmbeddedDeprecated
|
* @brief GetButtonConfigStorageEmbeddedDeprecated
|
||||||
* @note Only available on [10.0.0+].
|
* @note Only available on [10.0.0-12.1.0].
|
||||||
* @param[in] index Array index, should be 0-4.
|
* @param[in] index Array index, should be 0-4.
|
||||||
* @param[out] config \ref HidcfgButtonConfigEmbedded
|
* @param[out] config \ref HidcfgButtonConfigEmbedded
|
||||||
*/
|
*/
|
||||||
@ -664,7 +664,7 @@ Result hidsysGetButtonConfigStorageEmbeddedDeprecated(s32 index, HidcfgButtonCon
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief GetButtonConfigStorageFullDeprecated
|
* @brief GetButtonConfigStorageFullDeprecated
|
||||||
* @note Only available on [10.0.0+].
|
* @note Only available on [10.0.0-12.1.0].
|
||||||
* @param[in] index Array index, should be 0-4.
|
* @param[in] index Array index, should be 0-4.
|
||||||
* @param[out] config \ref HidcfgButtonConfigFull
|
* @param[out] config \ref HidcfgButtonConfigFull
|
||||||
*/
|
*/
|
||||||
@ -672,7 +672,7 @@ Result hidsysGetButtonConfigStorageFullDeprecated(s32 index, HidcfgButtonConfigF
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief GetButtonConfigStorageLeftDeprecated
|
* @brief GetButtonConfigStorageLeftDeprecated
|
||||||
* @note Only available on [10.0.0+].
|
* @note Only available on [10.0.0-12.1.0].
|
||||||
* @param[in] index Array index, should be 0-4.
|
* @param[in] index Array index, should be 0-4.
|
||||||
* @param[out] config \ref HidcfgButtonConfigLeft
|
* @param[out] config \ref HidcfgButtonConfigLeft
|
||||||
*/
|
*/
|
||||||
@ -680,7 +680,7 @@ Result hidsysGetButtonConfigStorageLeftDeprecated(s32 index, HidcfgButtonConfigL
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief GetButtonConfigStorageRightDeprecated
|
* @brief GetButtonConfigStorageRightDeprecated
|
||||||
* @note Only available on [10.0.0+].
|
* @note Only available on [10.0.0-12.1.0].
|
||||||
* @param[in] index Array index, should be 0-4.
|
* @param[in] index Array index, should be 0-4.
|
||||||
* @param[out] config \ref HidcfgButtonConfigRight
|
* @param[out] config \ref HidcfgButtonConfigRight
|
||||||
*/
|
*/
|
||||||
@ -688,7 +688,7 @@ Result hidsysGetButtonConfigStorageRightDeprecated(s32 index, HidcfgButtonConfig
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief SetButtonConfigStorageEmbeddedDeprecated
|
* @brief SetButtonConfigStorageEmbeddedDeprecated
|
||||||
* @note Only available on [10.0.0+].
|
* @note Only available on [10.0.0-12.1.0].
|
||||||
* @param[in] index Array index, should be 0-4.
|
* @param[in] index Array index, should be 0-4.
|
||||||
* @param[in] config \ref HidcfgButtonConfigEmbedded
|
* @param[in] config \ref HidcfgButtonConfigEmbedded
|
||||||
*/
|
*/
|
||||||
@ -696,7 +696,7 @@ Result hidsysSetButtonConfigStorageEmbeddedDeprecated(s32 index, const HidcfgBut
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief SetButtonConfigStorageFullDeprecated
|
* @brief SetButtonConfigStorageFullDeprecated
|
||||||
* @note Only available on [10.0.0+].
|
* @note Only available on [10.0.0-12.1.0].
|
||||||
* @param[in] index Array index, should be 0-4.
|
* @param[in] index Array index, should be 0-4.
|
||||||
* @param[in] config \ref HidcfgButtonConfigFull
|
* @param[in] config \ref HidcfgButtonConfigFull
|
||||||
*/
|
*/
|
||||||
@ -704,7 +704,7 @@ Result hidsysSetButtonConfigStorageFullDeprecated(s32 index, const HidcfgButtonC
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief SetButtonConfigStorageLeftDeprecated
|
* @brief SetButtonConfigStorageLeftDeprecated
|
||||||
* @note Only available on [10.0.0+].
|
* @note Only available on [10.0.0-12.1.0].
|
||||||
* @param[in] index Array index, should be 0-4.
|
* @param[in] index Array index, should be 0-4.
|
||||||
* @param[in] config \ref HidcfgButtonConfigLeft
|
* @param[in] config \ref HidcfgButtonConfigLeft
|
||||||
*/
|
*/
|
||||||
@ -712,7 +712,7 @@ Result hidsysSetButtonConfigStorageLeftDeprecated(s32 index, const HidcfgButtonC
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief SetButtonConfigStorageRightDeprecated
|
* @brief SetButtonConfigStorageRightDeprecated
|
||||||
* @note Only available on [10.0.0+].
|
* @note Only available on [10.0.0-12.1.0].
|
||||||
* @param[in] index Array index, should be 0-4.
|
* @param[in] index Array index, should be 0-4.
|
||||||
* @param[in] config \ref HidcfgButtonConfigRight
|
* @param[in] config \ref HidcfgButtonConfigRight
|
||||||
*/
|
*/
|
||||||
|
@ -678,56 +678,56 @@ Result hidsysIsButtonConfigStorageRightEmpty(s32 index, bool *out) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Result hidsysGetButtonConfigStorageEmbeddedDeprecated(s32 index, HidcfgButtonConfigEmbedded *config) {
|
Result hidsysGetButtonConfigStorageEmbeddedDeprecated(s32 index, HidcfgButtonConfigEmbedded *config) {
|
||||||
if (hosversionBefore(10,0,0))
|
if (hosversionBefore(10,0,0) || hosversionAtLeast(13,0,0))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _hidsysCmdInU32OutBufFixed((u32)index, config, sizeof(*config), 1259);
|
return _hidsysCmdInU32OutBufFixed((u32)index, config, sizeof(*config), 1259);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result hidsysGetButtonConfigStorageFullDeprecated(s32 index, HidcfgButtonConfigFull *config) {
|
Result hidsysGetButtonConfigStorageFullDeprecated(s32 index, HidcfgButtonConfigFull *config) {
|
||||||
if (hosversionBefore(10,0,0))
|
if (hosversionBefore(10,0,0) || hosversionAtLeast(13,0,0))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _hidsysCmdInU32OutBufFixed((u32)index, config, sizeof(*config), 1260);
|
return _hidsysCmdInU32OutBufFixed((u32)index, config, sizeof(*config), 1260);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result hidsysGetButtonConfigStorageLeftDeprecated(s32 index, HidcfgButtonConfigLeft *config) {
|
Result hidsysGetButtonConfigStorageLeftDeprecated(s32 index, HidcfgButtonConfigLeft *config) {
|
||||||
if (hosversionBefore(10,0,0))
|
if (hosversionBefore(10,0,0) || hosversionAtLeast(13,0,0))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _hidsysCmdInU32OutBufFixed((u32)index, config, sizeof(*config), 1261);
|
return _hidsysCmdInU32OutBufFixed((u32)index, config, sizeof(*config), 1261);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result hidsysGetButtonConfigStorageRightDeprecated(s32 index, HidcfgButtonConfigRight *config) {
|
Result hidsysGetButtonConfigStorageRightDeprecated(s32 index, HidcfgButtonConfigRight *config) {
|
||||||
if (hosversionBefore(10,0,0))
|
if (hosversionBefore(10,0,0) || hosversionAtLeast(13,0,0))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _hidsysCmdInU32OutBufFixed((u32)index, config, sizeof(*config), 1262);
|
return _hidsysCmdInU32OutBufFixed((u32)index, config, sizeof(*config), 1262);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result hidsysSetButtonConfigStorageEmbeddedDeprecated(s32 index, const HidcfgButtonConfigEmbedded *config) {
|
Result hidsysSetButtonConfigStorageEmbeddedDeprecated(s32 index, const HidcfgButtonConfigEmbedded *config) {
|
||||||
if (hosversionBefore(10,0,0))
|
if (hosversionBefore(10,0,0) || hosversionAtLeast(13,0,0))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _hidsysCmdInU32InBufFixedNoOut((u32)index, config, sizeof(*config), 1263);
|
return _hidsysCmdInU32InBufFixedNoOut((u32)index, config, sizeof(*config), 1263);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result hidsysSetButtonConfigStorageFullDeprecated(s32 index, const HidcfgButtonConfigFull *config) {
|
Result hidsysSetButtonConfigStorageFullDeprecated(s32 index, const HidcfgButtonConfigFull *config) {
|
||||||
if (hosversionBefore(10,0,0))
|
if (hosversionBefore(10,0,0) || hosversionAtLeast(13,0,0))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _hidsysCmdInU32InBufFixedNoOut((u32)index, config, sizeof(*config), 1264);
|
return _hidsysCmdInU32InBufFixedNoOut((u32)index, config, sizeof(*config), 1264);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result hidsysSetButtonConfigStorageLeftDeprecated(s32 index, const HidcfgButtonConfigLeft *config) {
|
Result hidsysSetButtonConfigStorageLeftDeprecated(s32 index, const HidcfgButtonConfigLeft *config) {
|
||||||
if (hosversionBefore(10,0,0))
|
if (hosversionBefore(10,0,0) || hosversionAtLeast(13,0,0))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _hidsysCmdInU32InBufFixedNoOut((u32)index, config, sizeof(*config), 1265);
|
return _hidsysCmdInU32InBufFixedNoOut((u32)index, config, sizeof(*config), 1265);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result hidsysSetButtonConfigStorageRightDeprecated(s32 index, const HidcfgButtonConfigRight *config) {
|
Result hidsysSetButtonConfigStorageRightDeprecated(s32 index, const HidcfgButtonConfigRight *config) {
|
||||||
if (hosversionBefore(10,0,0))
|
if (hosversionBefore(10,0,0) || hosversionAtLeast(13,0,0))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _hidsysCmdInU32InBufFixedNoOut((u32)index, config, sizeof(*config), 1266);
|
return _hidsysCmdInU32InBufFixedNoOut((u32)index, config, sizeof(*config), 1266);
|
||||||
|
Loading…
Reference in New Issue
Block a user