pdm: Updated sysver checks for 15.0.0.

This commit is contained in:
yellows8 2022-10-16 12:45:50 -04:00
parent ea145a8d3c
commit ac414d2bc5
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
2 changed files with 4 additions and 4 deletions

View File

@ -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.
@ -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.
*/

View File

@ -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)) {
@ -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);