MCPcopy Create free account
hub / github.com/bwapi/bwapi / CallPatch

Function CallPatch

bwapi/BWAPI/Source/NewHackUtil.cpp:209–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 }
208
209 void CallPatch(void* dest, void* patch)
210 {
211 u8 temp[5];
212 temp[0] = 0xE8;
213 *(int*)&temp[1] = (int)patch - (int)dest - 5;
214 WriteMem(dest, temp, 5);
215 return;
216 }
217
218 void CallPatch(u32 dest, void* patch)
219 {

Callers 2

_CreateWindowExFunction · 0.85
ApplyCodePatchesFunction · 0.85

Calls 1

WriteMemFunction · 0.85

Tested by

no test coverage detected