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

Function FCEU_CalcCheatAffectedBytes

src/cheat.cpp:145–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145int FCEU_CalcCheatAffectedBytes(uint32 address, uint32 size) {
146
147 uint32 count = 0;
148 if (cheatMap)
149 for (uint32 i = 0; i < size; ++i)
150 if (FCEUI_FindCheatMapByte(address + i))
151 ++count;
152 return count;
153}
154
155static void AddCheatEntry(const char *name, uint32 addr, uint8 val, int compare, int status, int type);
156static void CheatMemErr(void)

Callers 4

InsertWatchFunction · 0.85
EditWatchFunction · 0.85
UpdateWatchCheatsFunction · 0.85
ItemIndexToVirtualRegionFunction · 0.85

Calls 1

FCEUI_FindCheatMapByteFunction · 0.85

Tested by

no test coverage detected