From ea145a8d3c08ae335d32985e869a38071f14a9b8 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Sun, 16 Oct 2022 12:44:55 -0400 Subject: [PATCH] setsys: Updated sysver check for setsysNeedsToUpdateHeadphoneVolume. --- nx/include/switch/services/set.h | 2 +- nx/source/services/set.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nx/include/switch/services/set.h b/nx/include/switch/services/set.h index 5c2c1c1a..031faba0 100644 --- a/nx/include/switch/services/set.h +++ b/nx/include/switch/services/set.h @@ -1690,7 +1690,7 @@ Result setsysSetHeadphoneVolumeUpdateFlag(bool flag); /** * @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] a1 Output arg. * @param[out] a2 Output arg. diff --git a/nx/source/services/set.c b/nx/source/services/set.c index 06c5851e..4b390494 100644 --- a/nx/source/services/set.c +++ b/nx/source/services/set.c @@ -895,7 +895,7 @@ Result setsysSetHeadphoneVolumeUpdateFlag(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); struct {