Update: I've made it to be able to point to a boot.elf file.
BTW, on the first version the credits where wrong, sorry about that.
Quote:
v2 changes:
-It now asks for the file type (dol or elf) after typing the folder's name. Press intro to make it point to sd:/apps/myfolder/boot.dol or n and then intro to point to sd:/apps/myfolder/boot.elf.
-It can also take command line args like this:
Dol: forwarder.exe myfolder ->creates a myfolder.dol pointint to boot.dol
Elf: forwarder.exe myfolder elf ->creates a myfolder_elf.dol pointint to boot.elf
|
I saw numerous references to boot.dol in the hex editor. My guess is that the forwarder has error messages such as "printf("Your boot.dol in apps can't be read") and so on, instead of using formated output to make the error messages dependant of the path string. If I had the forwarder's source I could recompile them so the error messages are correct, as that would be a lot easier than changing them with the forwarder creator (I'm not gonna do that).
Original post:
Quote:
Originally Posted by Mr. Shizzy
Hey great man !
You should add .elf support too, and then I won't have to toil with this project anymore. I assume you took a look at the script I wrote, and saw the offsets that need to be edited. (To add .elf support you just need to change one of them - open one of the base .bin files with a hex editor and you can easily see which one it is that needs altering)
Thanks again for sharing mate 
|
I didn't really look at the lua files, once I saw all the "bin" files in the package I figured out what it was doing, I just took a look at one file to get the offset.
I didn't think about elf support because I don't know the forwarder's code, but from what you say it should be as easy as changin .dol to .elf, even though that doesn't really matter, as you could just rename the elf file you want to load to .elf and it should still work.
I don't really see any use on being able to load elf files, but I'll make the program ask for the extension.