Mmmm...why did you look at each file for the offset? The only change is the path string right?
So, for example, if the ex looks like this:
apps/myfolder/boot.dol1234515213521506165135errormessage
1234515213521506165135 will still be the same lenght regardless of "myfolder" lenght, so as the offset to "m" in "myfolder" is the same for all files, to reach the offset of "e" in "errormessage" you just have to do this:
"m"'s offset + "myfolder" lenght + 1234515213521506165135 lenght
As you see, we only have one variable, which is still the folder name. This is also the way I modify the .dol to .elf: offset to folder name+folder name lenght+6 (which is the distance until I position over the "d" of dol.
Still, modifying the forwarder's source and recompiling all 18 files would be much easier. Do you happen to have the source?
|