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

Function FlushGenieRW

src/fceu.cpp:297–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297void FlushGenieRW(void) {
298 int32 x;
299
300 if (RWWrap) {
301 for (x = 0; x < 0x8000; x++) {
302 ARead[x + 0x8000] = AReadG[x];
303 BWrite[x + 0x8000] = BWriteG[x];
304 }
305 free(AReadG);
306 free(BWriteG);
307 AReadG = NULL;
308 BWriteG = NULL;
309 RWWrap = 0;
310 }
311}
312
313readfunc GetReadHandler(int32 a) {
314 if (a >= 0x8000 && RWWrap)

Callers 2

FCEU_CloseGenieFunction · 0.85
FixGenieMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected