| 730 | } |
| 731 | |
| 732 | void 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 | |
| 756 | void FCEUI_CheatSearchBegin(void) |
| 757 | { |
no test coverage detected