| 200 | } |
| 201 | |
| 202 | static int CTRL(FCEUFILE *fp) { |
| 203 | int t; |
| 204 | uint32 i; |
| 205 | if (uchead.info == 1) { |
| 206 | if ((t = FCEU_fgetc(fp)) == EOF) |
| 207 | return(0); |
| 208 | /* The information stored in this byte isn't very helpful, but it's |
| 209 | better than nothing...maybe. |
| 210 | */ |
| 211 | |
| 212 | if (t & 1) |
| 213 | GameInfo->input[0] = GameInfo->input[1] = SI_GAMEPAD; |
| 214 | else |
| 215 | GameInfo->input[0] = GameInfo->input[1] = SI_NONE; |
| 216 | if (t & 2) |
| 217 | GameInfo->input[1] = SI_ZAPPER; |
| 218 | } else { |
| 219 | FCEU_printf(" Incorrect Control Chunk Size (%d). Data is:", uchead.info); |
| 220 | for (i = 0; i < uchead.info; i++) { |
| 221 | t = FCEU_fgetc(fp); |
| 222 | FCEU_printf(" %02x", t); |
| 223 | } |
| 224 | FCEU_printf("\n"); |
| 225 | GameInfo->input[0] = GameInfo->input[1] = SI_GAMEPAD; |
| 226 | } |
| 227 | return(1); |
| 228 | } |
| 229 | |
| 230 | static int TVCI(FCEUFILE *fp) { |
| 231 | int t; |
nothing calls this directly
no test coverage detected