Page 1 of 1

Custom URI handling for homebrew?

Posted: Sun Aug 28, 2016 5:32 am
by dots_tb
Is there a way to handle URI calls to a homebrew within it?
As in:
1. Adding an entry into the app.db (like binding "test:" to a homebrew)
2. Typing "test:<string>" in the webbrowser.
3. Then when the homebrew launches, a way to get the <string>.

Thanks in advance. Sorry my "tearing" level is worse that students.

Re: Custom URI handling for homebrew?

Posted: Wed Aug 31, 2016 12:32 pm
by Rinnegatamante
Your main function will not receive passed arguments in any case since newlib will stub them: https://github.com/vitasdk/newlib/blob/ ... crt0.c#L20

Re: Custom URI handling for homebrew?

Posted: Fri Sep 02, 2016 1:22 pm
by mambertx
Which will be a better approach?

Store parameters at a local file and then at launch read them and execute the uri call?