MCPcopy Create free account
hub / github.com/TASEmulators/fceux / TVCI

Function TVCI

src/unif.cpp:230–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230static int TVCI(FCEUFILE *fp) {
231 int t;
232 if ((t = FCEU_fgetc(fp)) == EOF)
233 return(0);
234 if (t <= 2) {
235 const char *stuffo[3] = { "NTSC", "PAL", "NTSC and PAL" };
236 if (t == 0) {
237 GameInfo->vidsys = GIV_NTSC;
238 FCEUI_SetVidSystem(0);
239 } else if (t == 1) {
240 GameInfo->vidsys = GIV_PAL;
241 FCEUI_SetVidSystem(1);
242 }
243 FCEU_printf(" TV Standard Compatibility: %s\n", stuffo[t]);
244 }
245 return(1);
246}
247
248static int EnableBattery(FCEUFILE *fp) {
249 FCEU_printf(" Battery-backed.\n");

Callers

nothing calls this directly

Calls 3

FCEU_fgetcFunction · 0.85
FCEUI_SetVidSystemFunction · 0.85
FCEU_printfFunction · 0.85

Tested by

no test coverage detected