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

Function FCEU_DisableAllCheats

src/cheat.cpp:871–886  ·  view source on GitHub ↗

disable all cheats

Source from the content-addressed store, hash-verified

869
870// disable all cheats
871int FCEU_DisableAllCheats(void)
872{
873 int count = 0;
874 struct CHEATF *next = cheats;
875 while(next)
876 {
877 if(next->status){
878 count++;
879 }
880 next->status = 0;
881 next = next->next;
882 }
883 savecheats = 1;
884 RebuildSubCheats();
885 return count;
886}
887
888// delete all cheats
889int FCEU_DeleteAllCheats(void)

Callers 1

DisableAllCheatsFunction · 0.85

Calls 1

RebuildSubCheatsFunction · 0.85

Tested by

no test coverage detected