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

Function JmpPatch

bwapi/BWAPI/Source/NewHackUtil.cpp:194–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 }
193
194 void JmpPatch(void* dest, void* patch)
195 {
196 u8 temp[5];
197 temp[0] = 0xE9;
198 *(int*)&temp[1] = (int)patch - (int)dest - 5;
199 WriteMem(dest, temp, 5);
200 return;
201 }
202
203 void JmpPatch(u32 dest, void* patch)
204 {

Callers 1

ApplyCodePatchesFunction · 0.85

Calls 1

WriteMemFunction · 0.85

Tested by

no test coverage detected