1
0
mirror of https://github.com/switchbrew/libnx.git synced 2025-07-17 16:22:18 +02:00

setsys: Updated sysver check for setsysNeedsToUpdateHeadphoneVolume.

This commit is contained in:
yellows8 2022-10-16 12:44:55 -04:00
parent 8b77139a04
commit ea145a8d3c
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
2 changed files with 2 additions and 2 deletions
nx
include/switch/services
source/services

View File

@ -1690,7 +1690,7 @@ Result setsysSetHeadphoneVolumeUpdateFlag(bool flag);
/** /**
* @brief NeedsToUpdateHeadphoneVolume * @brief NeedsToUpdateHeadphoneVolume
* @note Only available on [3.0.0+]. * @note Only available on [3.0.0-14.1.2].
* @param[out] a0 Output arg. * @param[out] a0 Output arg.
* @param[out] a1 Output arg. * @param[out] a1 Output arg.
* @param[out] a2 Output arg. * @param[out] a2 Output arg.

View File

@ -895,7 +895,7 @@ Result setsysSetHeadphoneVolumeUpdateFlag(bool flag) {
} }
Result setsysNeedsToUpdateHeadphoneVolume(u8 *a0, u8 *a1, u8 *a2, bool flag) { Result setsysNeedsToUpdateHeadphoneVolume(u8 *a0, u8 *a1, u8 *a2, bool flag) {
if (hosversionBefore(3,0,0)) if (!hosversionBetween(3,15))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
struct { struct {