| 205 | } |
| 206 | |
| 207 | void 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 |
no test coverage detected