Skip to content

Commit

Permalink
pdm: Updated sysver checks for 15.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
yellows8 committed Oct 16, 2022
1 parent ea145a8 commit ac414d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nx/include/switch/services/pdm.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ Result pdmqryGetAvailableAccountPlayEventRange(AccountUid uid, s32 *total_entrie

/**
* @brief Gets a list of applications played by the specified user.
* @note Only available with [6.0.0+].
* @note Only available with [6.0.0-14.1.2].
* @param[in] uid \ref AccountUid
* @param[in] flag [10.0.0+] Whether to additionally allow using entries with ::PdmPlayLogPolicy_Unknown3.
* @param[out] application_ids Output ApplicationIds array.
Expand All @@ -266,7 +266,7 @@ Result pdmqryQueryRecentlyPlayedApplication(AccountUid uid, bool flag, u64 *appl

/**
* @brief Gets an Event which is signaled when logging a new \ref PdmPlayEvent which would be available via \ref pdmqryQueryAccountEvent, where PdmPlayEvent::eventData::account::type is 0.
* @note Only available with [6.0.0+].
* @note Only available with [6.0.0-14.1.2].
* @note The Event must be closed by the user once finished with it.
* @param[out] out_event Output Event with autoclear=false.
*/
Expand Down
4 changes: 2 additions & 2 deletions nx/source/services/pdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Result pdmqryGetAvailableAccountPlayEventRange(AccountUid uid, s32 *total_entrie
}

Result pdmqryQueryRecentlyPlayedApplication(AccountUid uid, bool flag, u64 *application_ids, s32 count, s32 *total_out) {
if (hosversionBefore(6,0,0))
if (!hosversionBetween(6,15))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);

if (hosversionBefore(10,0,0)) {
Expand All @@ -204,7 +204,7 @@ Result pdmqryQueryRecentlyPlayedApplication(AccountUid uid, bool flag, u64 *appl
}

Result pdmqryGetRecentlyPlayedApplicationUpdateEvent(Event* out_event) {
if (hosversionBefore(6,0,0))
if (!hosversionBetween(6,15))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);

return _pdmCmdGetEvent(&g_pdmqrySrv, out_event, false, 15);
Expand Down

0 comments on commit ac414d2

Please sign in to comment.