In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

ELF to DOL Converter

From WiiBrew
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Elf converter
General
Author(s)Yossi
TypePC utility
Versionv 1.0
Links
[[Elf converter|Download]]
Source

What is this?

When HBCb9 came out, they decided that they no longer need to support any .elf in existence at the time. 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.

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.

Source with explanation

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) :P
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"
del "%%f\boot.elf" Erases the .elf now that it feels you don't need it any more.
)
echo Done!
pause