4dsdev
Views: 1,611,767 Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 12-03-24 05:14 PM
Guest:

0 users reading How to use start parameters in HB launcher? | 1 bot

Main - Homebrew discussion - How to use start parameters in HB launcher? Hide post layouts | New reply


d0k3
Posted on 11-10-15 11:43 AM (rev. 4 of 11-10-15 11:46 AM) Link | #704
Well, in theory, it should be pretty simple, but take a look at this code (from my Brahma fork):
s32 main (int argc, char **argv) {
// Initialize services
gfxInitDefault();
gfxSwapBuffers();

consoleInit(GFX_BOTTOM, NULL);
if (brahma_init()) {
if ((argc > 1) && (argc <= 4)) {
char* payload = argv[1];
u32 offset = 0;
u32 psize = 0;

if (argc > 2) sscanf(argv[2], "%X", &offset);
if (argc > 3) sscanf(argv[3], "%X", &psize);

printf("[+] Loading %s@%X (size %X)\n", payload, offset, psize);
load_arm9_payload(payload, offset, psize);
firm_reboot();
printf("[!] Loading failed\n");
(...);
The above doesn't work, all that is found in the start parameters is a few correct symbols for the first parameter (the payload), and then garbled stuff. I'm loading it via .XMLs, the same way HANS shortcuts are loaded. I'd just take a look into the HANS source code, but well, that isn't released yet. Any ideas?

Syphurith
Posted on 11-12-15 06:03 PM (rev. 3 of 11-12-15 06:04 PM) Link | #714
Posted by d0k3
--Snip--

Indeed there are more homebrews using the XML and perhaps with arguements..
Such as CHMM2, ftbrony, installer, menuhax_manager, qtm.. For example?
However i do suggest you to ask smea or others on #3dsdev for help on this.
BTW, what you suppose to do with the arguements? RxTools just loads a static payload and it's fine.
Yes if this could be loaded using CN or other *hax, those 8.1 users may have a way for xorpads..

d0k3
Posted on 11-14-15 07:23 PM Link | #715
Posted by Syphurith
Indeed there are more homebrews using the XML and perhaps with arguements..
Such as CHMM2, ftbrony, installer, menuhax_manager, qtm.. For example?
However i do suggest you to ask smea or others on #3dsdev for help on this.
BTW, what you suppose to do with the arguements? RxTools just loads a static payload and it's fine.
Yes if this could be loaded using CN or other *hax, those 8.1 users may have a way for xorpads..

I alreay got behind this, just check my Brahma2Loader source code :).

Syphurith
Posted on 11-14-15 07:37 PM Link | #716
Posted by d0k3
I alreay got behind this, just check my Brahma2Loader source code :).

Quite good news to hear. So it would load successfully from HBL then? Yup.


Main - Homebrew discussion - How to use start parameters in HB launcher? Hide post layouts | New reply

Page rendered in 0.012 seconds. (2048KB of memory used)
MySQL - queries: 28, rows: 71/71, time: 0.006 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.