NES-Hacks: Your home for Wii and DS Hacking!

Photobucket

<< Back to www.nes-hacks.com

You are not logged in.

#1 2008-10-28 23:19:43

The_Wii_Nes_Boy
Trifoce GFX Master and Moderator.
From: Scotland
Registered: 2008-05-18
Posts: 2075
Website

ELF to DOL converter

When HBCb9 came out, they decided that they no longer need to support any invalid .elf file. If you have .elf files you need to convert then to .dol with some little program that gets buried in some directory when/if you install devkitPro. This script will automate the task of converting all your stuff. It even comes with that little program so you don't need to install the entire devkitPro.

What do I do?
There are 3 files in this archive. Do whatever you want with the readme.txt, but put the other 2 files in your apps folder on the sd card (you need that sd card reader again :-/). Then just run the elf-dol_fixer.bat file and follow the directions on the screen.

Note!
This deletes the old .elf files after it's done with them. If you want to keep them either back them up beforehand, or edit the script to not erase.
There are some valid .elf files out there. Running this on them will cause them to stop working. Backup your apps folder before you run this.
Update: If a file named boot.elf exists in the directory, but it won't convert to .dol for whatever reason, it will still delete it. Even though you dont have a .dol yet. FIXED, sorta.

List of apps with valid .elf files
These should not be run through this converter. Backup this/these program(s) before running this script, as it doesn't have the smarts to avoid it/them. Feel free to add to this list if you find something that should be in it. So far the list is:

Kobodl

Elf converter 

                       Code                                                |                                  Explanation 
__________________________________________________________________________________________________
@ ECHO off                                                              |        Makes it so only lines that start with 'echo' will print on the screen. 
echo                                                                        |        This will delete your old boot.elf files when it's done. 
echo                                                                        |       So if you have some perverse attachment to them, figure something out. 
echo                                                                        |       Press ctrl+c to NOT continue. 
echo.                                                                       |       Makes a blank line. 
pause                                                                      |       Asks you to press the "Any" key (not shift) tongue 
echo. 
for /R %%f in (.) do if exist "%%f\boot.elf" (     |       Makes %%f hold the path to every directory in this directory, one by one. But not any directories under those. 
powerpc-gekko-objcopy.exe -O binary "%%f\boot.elf" "%%f\boot.dol" 
if exist "%%f\boot.dol" (del "%%f\boot.elf")     |       If it worked, erase the .elf. 

echo Done! 
pause 

DOWNLOAD
SOURCE


http://i299.photobucket.com/albums/mm311/The_Wii_Nes_Boy/Sigs/Triforce-Hero.gif
The sleepless insomniac !!

Check out my site, best place for things that are not allowed wink >>> http://twnb-worldofstuff.com

Offline

 

#2 2008-10-29 20:17:46

KinG_Td
Retired Admin
From: Royal Flush
Registered: 2008-05-03
Posts: 3862
Website

Re: ELF to DOL converter

thanks

posted to front page


http://i303.photobucket.com/albums/nn125/KinG_Td/KinG_Td-loop.gif
Currently Playing:
FALLOUT 3: Xbox 360 |N/A : PS3 |Chrono Trigger : NDS

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson