How to buid a cheat NTR?

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by LukySplatoon, Jan 2, 2017.

  1. LukySplatoon
    OP

    LukySplatoon GBAtemp Fan

    Member
    303
    28
    Jun 5, 2016
    Belgium
    Hello,
    I saw this video
    But I have a question if cheat has many codes! How to do it?
    Example:
    MK7 cheat Instant Win (START+Down) v1.1
    • DD000000 00000088
      6065C528 00000000
      B065C528 00000000
      20000BBC 00000009
      D2000000 00000000
    Code:
    if (cheatEnabled[0]) {
            WRITEU16(0xDD000000, 0x00000088);
        }
    if (cheatEnabled[1]) {
            WRITEU16(0x6065C528, 0x00000000);
        }
    if (cheatEnabled[2]) {
            WRITEU16(0xB065C528, 0x00000000);
        }
    if (cheatEnabled[3]) {
            WRITEU16(0x20000BBC, 0x00000009);
        }
    if (cheatEnabled[4]) {
            WRITEU16(0xD2000000, 0x00000000);
        }
    

    Why do I start the game and activate the cheat, my crash games?
    Thank! :)
     
  2. LukySplatoon
    OP

    LukySplatoon GBAtemp Fan

    Member
    303
    28
    Jun 5, 2016
    Belgium
    bump please!
     
  3. dsrules

    dsrules GBAtemp Psycho!

    Member
    3,866
    566
    Sep 20, 2005
  4. LukySplatoon
    OP

    LukySplatoon GBAtemp Fan

    Member
    303
    28
    Jun 5, 2016
    Belgium
    It's good?
    Code:
    // freeze the value
    void freezeCheatValue() {
    if (cheatEnabled[0]) {
            WRITEU16(0xDD000000, 0x00000088);
                    WRITEU16(0x6065C528, 0x00000000);
                    WRITEU16(0xB065C528, 0x00000000);
                    WRITEU16(0x20000BBC, 0x00000009);
                    WRITEU16(0xD2000000, 0x00000000);
        }
        // TODO: handle your own cheat items
    }
    
     
  5. dsrules

    dsrules GBAtemp Psycho!

    Member
    3,866
    566
    Sep 20, 2005
    read the instructions on how to use the app
     
    RyDog likes this.