code = 0xFFFF;
void cheatsAdd(char *codeStr,               char *desc,               u32 address,               u32 value,               int code,               int size,               bool freeze){  if(cheatsNumber < 100) {    int x = cheatsNumber;    cheatsList[x].code = code;    cheatsList[x].size = size;    cheatsList[x].address = address;    cheatsList[x].value = value;    strcpy(cheatsList[x].codestring, codeStr);    strcpy(cheatsList[x].desc, desc);    cheatsList[x].status = 2;    cheatsList[x].enabled = true;    bool normalCode = true;        if(address == 0) {      code = 0xFFFF;      cheatsList[x].enabled = false;      cheatsList[x].status = 0;      normalCode = false;    }    // don't do anything in case of multi line codes    if(isTrueMultilineCode(size))      normalCode = false;    if(normalCode) {      if(freeze)        cheatsList[x].status |= 1;      if(address < 0x8000000) {        cheatsList[x].oldValue = (size == 0 ? CPUReadByte(address) :                                  size == 1 ? CPUReadHalfWord(address) :                                  size == 3 ? CPUReadMemory(address) :                                  0);      } else {        cheatsList[x].oldValue = CPUReadHalfWord(address);        CHEAT_PATCH_ROM_16BIT(address,value);      }    }    cheatsNumber++;  }}