xflak40 said:btw, i tried using your method to create a hybrid channel (based on the instructions u gave xzxero) and the resulting binary was not a forwarder, it would only load the dol that i built into it. Do you have any ideas/advice?
pepxl said:ive added a MPlayer CE 0.76 compatible forwarder for those who wanted it and will be adding the emu forwarder soon
pepxl said:xflak40 said:btw, i tried using your method to create a hybrid channel (based on the instructions u gave xzxero) and the resulting binary was not a forwarder, it would only load the dol that i built into it. Do you have any ideas/advice?
i actual thought the same when i done it but if you get a version lower/higher app than the internal boot.dol then testing makes it a bit easyier
say you placed CFG 48 as the internal boot.dol then compiling, then had CFG 49 on the SD:/apps/usbloader_cfg, simply start the channel with the SD in and CFG 49 would load but if the SD was out then CFG 48 would load, if you have the same verion app as the internal dol it would seem like it wasnt forwarding as the 2 apps are the same version, i hope that make sense or you maybe your compile it wrong or injecting the wrong boot.dol after compiling?
xflak40 said:I did exactly what u said, the internal dol was v49, and the dol on my sd card was v48 (just switched from 49 to test this channel), and each time it loaded the internal dol (v49).
Its possible I am compiling it wrong, I got devkitpro, i copied over the libogc files you suggested, I edited the main file (only the one word from Triiforce to usbloader_cfg, I did this to all references of it), and I copied the CFG v49 boot.dol to the right directory. I then selected "clean", then "make". Then I injected the dol into a wad using customizemii.
strange , ill try and do a simple tut when i can, but then compiling always click "save" before a "clean" and then "make" as it will save the changes that you made tot eh search location, also are you using the data/boot.dol? if so its the wrong one, that boot.dol is merged to make the new one thats located in the forwarders root folder and is always complied along with an boot.elf, basically the hybrid boot.dol will be in the root folder with the "project.pnproj" file.
also, for some reason your Mplayer CE 0.76 compatible forwarder did not even load the app, it reset to the wii system menu
mmm... is your MPlayer in the folder SD:/apps/mplayer_ce, cause ive tested it and it always finds my boot.dol and exits fine, plus its the official forwarder .dol provided by the MPlayer Team
xflak40 said:If I didn't hit save before cleaning and making it... would it still look for a boot.dol under the OLD path? Because that may explain why it launched the internal dol each time (as I don't have a triiforce_mrc directory on my sd card, I thought I had changed it to usbloader_cfg... so is that the cause of my problem?
(and yes, I was using the new boot.dol)
re the mplayer_ce channel, I don't know why it didn't work, I have everything set up properly, the channel even works if I have mplayer_ce v0.75 saved here (SD:/apps/mplayer_ce)... so I'm not sure what the problem is
giantpune said:have you thought about using my libstub when compiling these forwarders? it's part of the usbloader source code. it will allow them to load the HBC return stub when launching a program. this will let it act as if it was launched from HBC itself.
giantpune said:what is the default path for mplayerce 76 or whatever is the troublesome one?
same as ever, its
SD:/apps/mplayer_ce/boot.dol
ive tried a little to merge your stub into the GX forwarder source but i getting this and cant seem to find the entry its refering to
QUOTE> "make"
> Process Exit Code: 0
> Time Taken: 00:02
make[1]: *** No rule to make target `certs.dat.o', needed by `/c/projects/GX_Forwarder/boot.elf'. Stop.
"make": *** [build] Error 2
> Process Exit Code: 2
> Time Taken: 00:00
giantpune said:http://www.mediafire.com/?kwwmjoak5rl
try that. it uses the same image as our GX forwarder, but i had it load the stub into memory.
and that error is because you decided that you needed certs.dat in the forwarder. and when the compiler finds it in there with all the other files and sees that it ends with .dat it flips out. so either delete it from the project folders, or make a bin2o rule in the makefile for it.
i just coppied the data folder from the GX loader source as the lstub.c was asking for stub_bin.h, must of forgot to delete the other files, even with or with out the stub.bin i get compile errors
QUOTE> "make"
main.cpp
video.cpp
cfg.c
dolloader.c
elfloader.c
fatmounter.c
lstub.c
c:/projects/GX_Forwarder/source/lstub.c:10:22: error: stub_bin.h: No such file or directory
c:/projects/GX_Forwarder/source/lstub.c: In function 'loadStub':
c:/projects/GX_Forwarder/source/lstub.c:86: error: 'stub_bin' undeclared (first use in this function)
c:/projects/GX_Forwarder/source/lstub.c:86: error: (Each undeclared identifier is reported only once
c:/projects/GX_Forwarder/source/lstub.c:86: error: for each function it appears in.)
c:/projects/GX_Forwarder/source/lstub.c:86: error: 'stub_bin_size' undeclared (first use in this function)
make[1]: *** [lstub.o] Error 1
"make": *** [build] Error 2
> Process Exit Code: 2
> Time Taken: 00:13
giantpune said:sounds like you didnt make a rule for the .bin in the makefile. here's mine http://www.mediafire.com/?zmywnywtm3t
note that i used the same entrypoint as HBC, so it wont start from HBC. but it should start from the system menu fine. and also it should be able to load any app the HBC can. it sets the "return to" to JODI.