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

Function FCEU_WriteRomByte

src/fceu.cpp:1552–1563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1550}
1551
1552void FCEU_WriteRomByte(uint32 i, uint8 value) {
1553 if (i < 16)
1554#ifdef __WIN_DRIVER__
1555 MessageBox(hMemView, "Sorry", "You can't edit the ROM header.", MB_OK | MB_ICONERROR);
1556#else
1557 printf("Sorry, you can't edit the ROM header.\n");
1558#endif
1559 if (i < 16 + PRGsize[0])
1560 PRGptr[0][i - 16] = value;
1561 else if (i < 16 + PRGsize[0] + CHRsize[0])
1562 CHRptr[0][i - 16 - PRGsize[0]] = value;
1563}

Callers 1

rom_writebyteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected