Views: 1,610,111 | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search | 11-24-24 12:11 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? | Hide post layouts | New reply |
d0k3 |
| ||
Member Normal user Level: 20 Posts: 57/75 EXP: 38208 Next: 4231 Since: 06-04-15 Last post: 3253 days ago Last view: 3000 days ago |
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) {
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?// 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"); (...); |
Syphurith |
| ||
Member Normal user Level: 18 Posts: 41/59 EXP: 26098 Next: 3799 Since: 10-26-15 Last post: 3237 days ago Last view: 3186 days ago |
Posted by d0k3 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 |
| ||
Member Normal user Level: 20 Posts: 59/75 EXP: 38208 Next: 4231 Since: 06-04-15 Last post: 3253 days ago Last view: 3000 days ago |
Posted by Syphurith I alreay got behind this, just check my Brahma2Loader source code . |
Syphurith |
| ||
Member Normal user Level: 18 Posts: 42/59 EXP: 26098 Next: 3799 Since: 10-26-15 Last post: 3237 days ago Last view: 3186 days ago |
Posted by d0k3 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.011 seconds. (2048KB of memory used) MySQL - queries: 26, rows: 69/69, time: 0.006 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |