MCPcopy Create free account
hub / github.com/TASEmulators/fceux / FCEUI_ToggleCheat

Function FCEUI_ToggleCheat

src/cheat.cpp:624–643  ·  view source on GitHub ↗

Convenience function. */

Source from the content-addressed store, hash-verified

622
623/* Convenience function. */
624int FCEUI_ToggleCheat(uint32 which)
625{
626 struct CHEATF *next=cheats;
627 uint32 x=0;
628
629 while(next)
630 {
631 if(x==which)
632 {
633 next->status=!next->status;
634 savecheats=1;
635 RebuildSubCheats();
636 return(next->status);
637 }
638 next=next->next;
639 x++;
640 }
641
642 return(-1);
643}
644
645int FCEUI_GlobalToggleCheat(int global_enabled)
646{

Callers 3

actvCheatItemClickedMethod · 0.85
cheatListEnableToggleFunction · 0.85
ToggleCheatFunction · 0.85

Calls 1

RebuildSubCheatsFunction · 0.85

Tested by

no test coverage detected