MCPcopy Create free account
hub / github.com/GTAmodding/III.VC.SA.LimitAdjuster / PutCallFunction

Method PutCallFunction

src/shared/cpatch/SCM/CPatch.cpp:108–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void CPatch::PutCallFunction(DWORD dwAddress, const void* to)
109{
110 DWORD movement = (DWORD)to - dwAddress - 5;
111
112 SaveAndDisablePatchDebugState();
113
114 PatchBYTE(dwAddress, 0xE8); // call
115
116 PatchDWORD(dwAddress + 1, movement);
117
118 RestoreSavedPatchDebugState();
119}
120
121// NOPs instruction (0x90)
122void CPatch::NOPinstructions(DWORD dwAddress, int iSize)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected