Skip to content

Commit

Permalink
setsys: Updated sysver check for setsysNeedsToUpdateHeadphoneVolume.
Browse files Browse the repository at this point in the history
  • Loading branch information
yellows8 committed Oct 16, 2022
1 parent 8b77139 commit ea145a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nx/include/switch/services/set.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion nx/source/services/set.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ea145a8

Please sign in to comment.