Convenience function. */
| 622 | |
| 623 | /* Convenience function. */ |
| 624 | int FCEUI_ToggleCheat(uint32 which) |
| 625 | { |
| 626 | struct CHEATF *next=cheats; |
| 627 | uint32 x=0; |
| 628 | |
| 629 | while(next) |
| 630 | { |
| 631 | if(x==which) |
| 632 | { |
| 633 | next->status=!next->status; |
| 634 | savecheats=1; |
| 635 | RebuildSubCheats(); |
| 636 | return(next->status); |
| 637 | } |
| 638 | next=next->next; |
| 639 | x++; |
| 640 | } |
| 641 | |
| 642 | return(-1); |
| 643 | } |
| 644 | |
| 645 | int FCEUI_GlobalToggleCheat(int global_enabled) |
| 646 | { |
no test coverage detected