How to make sure if an app is an elf or dol

Discussion in 'Wii - Tutorials' started by Anon10W1z, Jun 13, 2012.

  1. Anon10W1z
    OP

    Anon10W1z GBAtemp Maniac

    Member
    1,112
    56
    Feb 18, 2012
    United States
    Somewhere over the rainbow
    What you need is HxD (a hex editor), and the homebrew app to test.

    Now, a file might be a boot.dol in reality, but it could just be renamed to boot.elf. If you aren't sure if it's really a boot.dol or boot.elf, follow these steps.

    1. Open HxD.
    2. Press Ctrl+O.
    3. Navigate and select the homebrew app's executable (dol/elf)

    On the first line, if a boot.dol is present, it should show:

    00 00 01

    As the first few bits of code.

    On a boot.elf, they are:

    7F 45 4C 46 01 02 01

    Hope this helps someone.

    For the more technical people, these are the file signatures of any Wii .dol or .elf.
     
  2. SifJar

    SifJar Not a pirate

    Member
    6,022
    892
    Apr 4, 2009
    Or you could just, you know, look at the file extension. I'm fairly certain apps are almost always named correctly (considering the file names are usually generated by the MAKEFILE, which will name them correctly unless the developer has messed up the MAKEFILE). And even if they aren't, HBC can probably still load them fine.
     
  3. Luigi2012SM64DS

    Luigi2012SM64DS G-old member

    Banned
    2,060
    309
    Aug 27, 2011
    Canada
    Minecrapt
    Or you could just see if its a boot.dol or boot.elf
     
  4. JoostinOnline

    JoostinOnline Certified Crash Test Dummy

    Member
    10,974
    3,758
    Apr 2, 2011
    United States
    The Twilight Zone
    I really don't see how this deserves a thread in the guides section.
     
  5. Anon10W1z
    OP

    Anon10W1z GBAtemp Maniac

    Member
    1,112
    56
    Feb 18, 2012
    United States
    Somewhere over the rainbow
    *ahem*. Dude, what if the user changes the file extension to an elf and forgets its really a dol, and then tries to use an elf loader on the ".elf"? He would need to make sure it's a real elf, which he can do by reading this guide.

    This goes for @SifJar too.

    @[member='JoostinOnline']: If a mod thinks this thread should be moved, they will move it.
     
  6. SifJar

    SifJar Not a pirate

    Member
    6,022
    892
    Apr 4, 2009
    If the user is a moron who decides it's a good idea to change the extension of a dol to an elf, they will be too stupid to even find this thread. (Alternatively, if they had a valid reason for changing the extension [I cannot think of any, but maybe there is one], they'll not be idiotic enough to forget and need to check. If they did, they'd open it in a hex editor and see if it the first few bytes contain "ELF" in ASCII fairly easily)
     
  7. Luigi2012SM64DS

    Luigi2012SM64DS G-old member

    Banned
    2,060
    309
    Aug 27, 2011
    Canada
    Minecrapt
    What dude would do that?
     
  8. Anon10W1z
    OP

    Anon10W1z GBAtemp Maniac

    Member
    1,112
    56
    Feb 18, 2012
    United States
    Somewhere over the rainbow
    A stupid user who thinks changing .dol to .elf will make a dol an elf.
     
  9. SifJar

    SifJar Not a pirate

    Member
    6,022
    892
    Apr 4, 2009
    And you think such an idiot will be able to find and follow this thread?
     
  10. Anon10W1z
    OP

    Anon10W1z GBAtemp Maniac

    Member
    1,112
    56
    Feb 18, 2012
    United States
    Somewhere over the rainbow
    Maybe. Maybe.

    Now can we stop flaming at each other?
     
  11. Slimmmmmm

    Slimmmmmm GBAtemp MoNkEeE

    Member
    1,687
    28
    Nov 1, 2007
    the land of lol
    There is no harm in the information.

    However, if you want suggestions then I would add more dol/elf information, an obvious one would be converting them but many other small guides like compressing them etc could all add up to a decent dol/elf basics guide.

    You could add anything really like extracting dols from wads, replacing them etc etc....

    Always look for the positive and try to help someone when they are trying to help others.