break; case MASTER_CODE: mastercode=0;
void cheatsDelete(int number, bool restore){  if(number < cheatsNumber && number >= 0) {    int x = number;    if(restore) {      switch(cheatsList[x].size) {      case INT_8_BIT_WRITE:        CPUWriteByte(cheatsList[x].address, (u8)cheatsList[x].oldValue);        break;      case INT_16_BIT_WRITE:        CPUWriteHalfWord(cheatsList[x].address, (u16)cheatsList[x].oldValue);        break;      case INT_32_BIT_WRITE:        CPUWriteMemory(cheatsList[x].address, cheatsList[x].oldValue);        break;      case GSA_16_BIT_ROM_PATCH:        if(cheatsList[x].status & 1) {          cheatsList[x].status &= ~1;          CHEAT_PATCH_ROM_16BIT(cheatsList[x].address,                                cheatsList[x].oldValue);          }        break;      case GSA_16_BIT_ROM_PATCH2C:	  case GSA_16_BIT_ROM_PATCH2D:	  case GSA_16_BIT_ROM_PATCH2E:	  case GSA_16_BIT_ROM_PATCH2F:        if(cheatsList[x].status & 1) {          cheatsList[x].status &= ~1;        }        break;      }    }    if((x+1) <  cheatsNumber) {      memcpy(&cheatsList[x], &cheatsList[x+1], sizeof(CheatsData)*             (cheatsNumber-x-1));    }    cheatsNumber--;  }}