Lines Matching refs:which1

340 void S9xDeleteCheat (uint32 which1)  in S9xDeleteCheat()  argument
342 if (which1 < Cheat.num_cheats) in S9xDeleteCheat()
344 if (Cheat.c[which1].enabled) in S9xDeleteCheat()
345 S9xRemoveCheat(which1); in S9xDeleteCheat()
347 …memmove(&Cheat.c[which1], &Cheat.c[which1 + 1], sizeof(Cheat.c[0]) * (Cheat.num_cheats - which1 - … in S9xDeleteCheat()
359 void S9xRemoveCheat (uint32 which1) in S9xRemoveCheat() argument
361 if (Cheat.c[which1].saved) in S9xRemoveCheat()
363 uint32 address = Cheat.c[which1].address; in S9xRemoveCheat()
369 *(ptr + (address & 0xffff)) = Cheat.c[which1].saved_byte; in S9xRemoveCheat()
371 S9xSetByteFree(Cheat.c[which1].saved_byte, address); in S9xRemoveCheat()
383 void S9xEnableCheat (uint32 which1) in S9xEnableCheat() argument
385 if (which1 < Cheat.num_cheats && !Cheat.c[which1].enabled) in S9xEnableCheat()
387 Cheat.c[which1].enabled = TRUE; in S9xEnableCheat()
388 S9xApplyCheat(which1); in S9xEnableCheat()
392 bool8 S9xCheatEnabled (uint32 which1) in S9xCheatEnabled() argument
394 return Cheat.c[which1].enabled; in S9xCheatEnabled()
397 void S9xDisableCheat (uint32 which1) in S9xDisableCheat() argument
399 if (which1 < Cheat.num_cheats && Cheat.c[which1].enabled) in S9xDisableCheat()
401 S9xRemoveCheat(which1); in S9xDisableCheat()
402 Cheat.c[which1].enabled = FALSE; in S9xDisableCheat()
406 void S9xApplyCheat (uint32 which1) in S9xApplyCheat() argument
410 uint32 address = Cheat.c[which1].address; in S9xApplyCheat()
412 if (!Cheat.c[which1].saved) in S9xApplyCheat()
414 Cheat.c[which1].saved_byte = S9xGetByteFree(address); in S9xApplyCheat()
415 Cheat.c[which1].saved = TRUE; in S9xApplyCheat()
422 *(ptr + (address & 0xffff)) = Cheat.c[which1].byte; in S9xApplyCheat()
424 S9xSetByteFree(Cheat.c[which1].byte, address); in S9xApplyCheat()