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

Function DoMirroring

src/unif.cpp:124–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124static int DoMirroring(FCEUFILE *fp) {
125 int t;
126 uint32 i;
127 if (uchead.info == 1) {
128 if ((t = FCEU_fgetc(fp)) == EOF)
129 return(0);
130 mirrortodo = t;
131 {
132 static const char *stuffo[6] = { "Horizontal", "Vertical", "$2000", "$2400", "\"Four-screen\"", "Controlled by Mapper Hardware" };
133 if (t < 6)
134 FCEU_printf(" Name/Attribute Table Mirroring: %s\n", stuffo[t]);
135 }
136 } else {
137 FCEU_printf(" Incorrect Mirroring Chunk Size (%d). Data is:", uchead.info);
138 for (i = 0; i < uchead.info; i++) {
139 if ((t = FCEU_fgetc(fp)) == EOF)
140 return(0);
141 FCEU_printf(" %02x", t);
142 }
143 FCEU_printf("\n Default Name/Attribute Table Mirroring: Horizontal\n");
144 mirrortodo = 0;
145 }
146 return(1);
147}
148
149static int NAME(FCEUFILE *fp) {
150 char namebuf[100];

Callers

nothing calls this directly

Calls 2

FCEU_fgetcFunction · 0.85
FCEU_printfFunction · 0.85

Tested by

no test coverage detected