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

Function FCEUI_CheatSearchGet

src/cheat.cpp:715–730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

713/* This function will give the initial value of the search and the current value at a location. */
714
715void FCEUI_CheatSearchGet(int (*callb)(uint32 a, uint8 last, uint8 current, void *data),void *data)
716{
717 uint32 x;
718
719 if(!CheatComp)
720 {
721 if(!InitCheatComp())
722 CheatMemErr();
723 return;
724 }
725
726 for(x=0;x<0x10000;x++)
727 if(!(CheatComp[x]&CHEATC_NOSHOW) && CheatRPtrs[x>>10])
728 if(!callb(x,CheatComp[x],CheatRPtrs[x>>10][x],data))
729 break;
730}
731
732void FCEUI_CheatSearchGetRange(uint32 first, uint32 last, int (*callb)(uint32 a, uint8 last, uint8 current))
733{

Callers 1

ShowResFunction · 0.85

Calls 2

InitCheatCompFunction · 0.85
CheatMemErrFunction · 0.85

Tested by

no test coverage detected