| 480 | } |
| 481 | |
| 482 | static int GGtobin(char c) |
| 483 | { |
| 484 | static char lets[16]={'A','P','Z','L','G','I','T','Y','E','O','X','U','K','S','V','N'}; |
| 485 | int x; |
| 486 | |
| 487 | for(x=0;x<16;x++) |
| 488 | if(lets[x] == toupper(c)) return(x); |
| 489 | return(0); |
| 490 | } |
| 491 | |
| 492 | /* Returns 1 on success, 0 on failure. Sets *a,*v,*c. */ |
| 493 | int FCEUI_DecodeGG(const char *str, int *a, int *v, int *c) |