| 451 | } |
| 452 | |
| 453 | int FCEUI_GetCheat(uint32 which, std::string *name, uint32 *a, uint8 *v, int *compare, int *s, int *type) |
| 454 | { |
| 455 | struct CHEATF *next=cheats; |
| 456 | uint32 x=0; |
| 457 | |
| 458 | while(next) |
| 459 | { |
| 460 | if(x==which) |
| 461 | { |
| 462 | if(name) |
| 463 | *name=next->name; |
| 464 | if(a) |
| 465 | *a=next->addr; |
| 466 | if(v) |
| 467 | *v=next->val; |
| 468 | if(s) |
| 469 | *s=next->status; |
| 470 | if(compare) |
| 471 | *compare=next->compare; |
| 472 | if(type) |
| 473 | *type=next->type; |
| 474 | return(1); |
| 475 | } |
| 476 | next=next->next; |
| 477 | x++; |
| 478 | } |
| 479 | return(0); |
| 480 | } |
| 481 | |
| 482 | static int GGtobin(char c) |
| 483 | { |
no outgoing calls
no test coverage detected