Skip to content

Add nsListApplicationTitle2#717

Open
masagrator wants to merge 16 commits intoswitchbrew:masterfrom
masagrator:patch-4
Open

Add nsListApplicationTitle2#717
masagrator wants to merge 16 commits intoswitchbrew:masterfrom
masagrator:patch-4

Conversation

@masagrator
Copy link
Contributor

No description provided.

@masagrator masagrator changed the title Add nsGetApplicationTitle Add nsListApplicationTitle2 Feb 22, 2026
@masagrator masagrator changed the title Add nsListApplicationTitle2 Add nsListApplicationTitle2 and nsListApplicationTitle3 Feb 26, 2026
@masagrator
Copy link
Contributor Author

masagrator commented Feb 26, 2026

Added another nsListApplicationTitle function because it requires smaller buffer (space for only one nsApplicationControlData unlike nsListApplicationTitle2) which will be more useful in memory constrained use. Also it's officially used by qlaunch.

@masagrator masagrator changed the title Add nsListApplicationTitle2 and nsListApplicationTitle3 Add nsListApplicationTitle2 Mar 1, 2026
@masagrator
Copy link
Contributor Author

masagrator commented Mar 1, 2026

Now I went back to previous approved data but with comment changed, because it turns out that expected tmem size was smaller. I was assuming it is the same as for original ListApplicationTitle because for Cmd421 on switchbrew it states that:
This is essentially the same as [ListApplicationTitle](https://switchbrew.org/wiki/NS_services#ListApplicationTitle) except the ApplicationControlSource is used here (ListApplicationTitle ignores it and uses 0xF0 instead).
Which needs bigger buffer.

But now I checked code and it's

  if ( 0x308 * v5 + 0x1D000 > a5 )
    return 0x5010LL;

@yellows8
Copy link
Contributor

yellows8 commented Mar 1, 2026

Update wiki?

@masagrator
Copy link
Contributor Author

Updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants