BOSSU:GetNsDataIdList: Difference between revisions
DaniElectra (talk | contribs) Use IPC template header |
DaniElectra (talk | contribs) m →Internals: Add more info about first type parameter |
||
(One intermediate revision by the same user not shown) | |||
Line 22: | Line 22: | ||
Writes an array of NS Data ID entries (u32) for the program ID of the current session to the output buffer using the provided filters. | Writes an array of NS Data ID entries (u32) for the program ID of the current session to the output buffer using the provided filters. | ||
==Internals== | |||
This eventually calls a function with the following type parameters: 0, 1, 1. This function doesn't use the second type parameter. Afterwards another function is called using the program ID. | This eventually calls a function with the following type parameters: 0, 1, 1. This function doesn't use the second type parameter. Afterwards another function is called using the program ID. | ||
The first type parameter is a filter based on the new flag of the NsData: | |||
{| class="wikitable" border="1" | |||
! Value !! Description | |||
|- | |||
| 0 || Allow everything. This will also unset the [[BOSS_Savegame#BOSS_A_TitleInfo|arrival flag]] | |||
|- | |||
| 1 || Only allow entries which don't have the new flag set. This will also set the [[BOSS_Savegame#BOSS_A_TitleInfo|arrival flag]] | |||
|- | |||
| 2 || Only allow entries which have the new flag set. This will also set the [[BOSS_Savegame#BOSS_A_TitleInfo|arrival flag]] | |||
|} | |||
The second type parameter represents the session being used for the command: | |||
{| class="wikitable" border="1" | |||
! Value !! Description | |||
|- | |||
| 1 || User | |||
|- | |||
| 2 || Privileged | |||
|} | |||
The third type parameter is a filter based on the program ID of the session: | |||
{| class="wikitable" border="1" | |||
! Value !! Description | |||
|- | |||
| 0 || Allow everything | |||
|- | |||
| 1 || Only allow entries which have a target program ID matching the program ID of the session | |||
|} | |||
Hence, this command only lists entries whose program ID matches the one from this session. | |||
=Filter= | =Filter= |