Possible to permanently patch cheat into game?

Discussion in 'Wii - Hacking' started by Krestent, Jul 4, 2010.

  1. Krestent

    Krestent What to post?

    Mar 31, 2009
    United States
    Is there a way to permanently patch a cheat into an ISO (such as the difficulty modifier into MPT)?
  2. harmor

    harmor GBAtemp Fan

    Jan 8, 2010
    United States
    I don't see why not. You can temporarily use ocarina cheats so why couldn't you patch the ISO to use them permanently?

    I don't want program you would use though. Perhaps an hex editor?
  3. WiiPower

    WiiPower GBAtemp Guru

    Oct 17, 2008
    Gambia, The
    It depends if the cheat is modifying the game memory(like always set money to 999.999.999 when the code handler is executed) or changes the actual game code(like when being killed don't substract 1 from the lives). I can't tell you which one it is for Metroid, if it's the game code, you need to translate the memory offset into the offset in the main.dol. Well that's actually what i would do to determine if it's a memory or game code patch, if the patched memory is memory that is used by the main.dol directly, then you should be lucky.

    If you have good hexeditor skills and know the structure of .dols, you can do it yourself.

    typedef struct _dolheader {
    ÂÂÂÂu32 text_pos[7];
    ÂÂÂÂu32 data_pos[11];
    ÂÂÂÂu32 text_start[7];
    ÂÂÂÂu32 data_start[11];
    ÂÂÂÂu32 text_size[7];
    ÂÂÂÂu32 data_size[11];
    ÂÂÂÂu32 bss_start;
    ÂÂÂÂu32 bss_size;
    ÂÂÂÂu32 entry_point;
    } dolheader;
    The "starts" are the offsets in memory, the "pos" are the offsets within the .dol file, and the "sizes" should be clear. I won't do this nor will i explain it further.