Skip to content

feat: Add browser applet - #563

Open
Sorunome wants to merge 1 commit into
devkitPro:masterfrom
Sorunome:soru/browser
Open

feat: Add browser applet#563
Sorunome wants to merge 1 commit into
devkitPro:masterfrom
Sorunome:soru/browser

Conversation

@Sorunome

Copy link
Copy Markdown
Contributor

This PR adds a new method to easily call the browser applet, optional at a specific address.

Comment threadlibctru/include/3ds/applets/browser.h Outdated
Comment threadlibctru/source/applets/browser.c Outdated
void* buffer = malloc(url_len);
if (buffer) memcpy(buffer, url, url_len);
aptLaunchSystemApplet(APPID_WEB, buffer, url_len, 0);
if (buffer) free(buffer);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the browser applet return anything useful in the buffer? Is it worth trying to send that back to the app?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't find any evidence of that / currently nothing is known, as far as soru is aware

@Sorunome
Sorunomeforce-pushed the soru/browser branch 3 times, most recently from af66e5f to c0bd6a0CompareMarch 17, 2025 18:48
@Sorunome

Copy link
Copy Markdown
ContributorAuthor

Is there anything still needed to get this PR merged?

@R-YaTian

Copy link
Copy Markdown
Contributor

I suspect that the browser applet returns the URL of the last redirect as the apt parameter — this needs more testing to verify.

@Sorunome

Copy link
Copy Markdown
ContributorAuthor

@R-YaTian finally got around testing; after the call the buffer is just emtpy

Sign up for freeto 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.

3 participants

@Sorunome@R-YaTian@fincs