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

Function FCEUI_CheatSearchGetRange

src/cheat.cpp:732–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730}
731
732void FCEUI_CheatSearchGetRange(uint32 first, uint32 last, int (*callb)(uint32 a, uint8 last, uint8 current))
733{
734 uint32 x;
735 uint32 in = 0;
736
737 if(!CheatComp)
738 {
739 if(!InitCheatComp())
740 CheatMemErr();
741 return;
742 }
743
744 for(x = 0; x < 0x10000; x++)
745 if(!(CheatComp[x] & CHEATC_NOSHOW) && CheatRPtrs[x >> 10])
746 {
747 if(in >= first)
748 if(!callb(x, CheatComp[x], CheatRPtrs[x >> 10][x]))
749 break;
750 in++;
751 if(in > last)
752 return;
753 }
754}
755
756void FCEUI_CheatSearchBegin(void)
757{

Callers 3

ShowResultsFunction · 0.85

Calls 2

InitCheatCompFunction · 0.85
CheatMemErrFunction · 0.85

Tested by

no test coverage detected