| 713 | /* This function will give the initial value of the search and the current value at a location. */ |
| 714 | |
| 715 | void 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 | |
| 732 | void FCEUI_CheatSearchGetRange(uint32 first, uint32 last, int (*callb)(uint32 a, uint8 last, uint8 current)) |
| 733 | { |
no test coverage detected