4dsdev
Views: 614,142 Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 11-24-17 04:24 AM
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? New reply


d0k3
Posted on 11-10-15 06:43 AM (rev. 4 of 11-10-15 06: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 01:03 PM (rev. 3 of 11-12-15 01: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 02: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 02: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? New reply

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