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

Function FixGenieMap

src/cart.cpp:493–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491
492
493void FixGenieMap(void) {
494 int x;
495
496 geniestage = 2;
497
498 for (x = 0; x < 8; x++)
499 VPage[x] = VPageG[x];
500
501 VPageR = VPage;
502 FlushGenieRW();
503 //printf("Rightyo\n");
504 for (x = 0; x < 3; x++)
505 if ((modcon >> (4 + x)) & 1) {
506 readfunc tmp[3] = { GenieFix1, GenieFix2, GenieFix3 };
507 GenieBackup[x] = GetReadHandler(genieaddr[x]);
508 SetReadHandler(genieaddr[x], genieaddr[x], tmp[x]);
509 }
510}
511
512void FCEU_GeniePower(void) {
513 uint32 x;

Callers 1

DECLFWFunction · 0.85

Calls 3

FlushGenieRWFunction · 0.85
GetReadHandlerFunction · 0.85
SetReadHandlerFunction · 0.85

Tested by

no test coverage detected