Possible to permanently patch cheat into game?

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

  1. Krestent
    OP

    Member Krestent What to post?

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

    Member harmor GBAtemp Fan

    Joined:
    Jan 8, 2010
    Messages:
    420
    Country:
    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

    Member WiiPower GBAtemp Guru

    Joined:
    Oct 17, 2008
    Messages:
    8,165
    Country:
    Germany
    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.

    Code:
    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.
     

Share This Page