mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-06 16:19:25 +02:00
pdm: Updated sysver checks for 15.0.0.
This commit is contained in:
parent
ea145a8d3c
commit
ac414d2bc5
@ -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.
|
||||
*/
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user