MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / Patch_ApplyPatch

Function Patch_ApplyPatch

Source/OSHLE/patch.cpp:207–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void Patch_ApplyPatch(u32 i)
208{
209#ifdef DAEDALUS_ENABLE_DYNAREC
210 u32 pc = g_PatchSymbols[i]->Location;
211
212 CFragment *frag = new CFragment(gFragmentCache.GetCodeBufferManager(),
213 PHYS_TO_K0(pc),
214 g_PatchSymbols[i]->Signatures->NumOps,
215 (void*)g_PatchSymbols[i]->Function);
216
217 gFragmentCache.InsertFragment(frag);
218#endif
219}
220
221#ifndef DAEDALUS_SILENT
222// Return the location of a symbol

Callers 2

Patch_PatchAllFunction · 0.85
Patch_RecurseAndFindFunction · 0.85

Calls 2

GetCodeBufferManagerMethod · 0.80
InsertFragmentMethod · 0.80

Tested by

no test coverage detected