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

Function Patch_ApplyPatches

Source/OSHLE/patch.cpp:148–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void Patch_ApplyPatches()
149{
150 gPatchesApplied = true;
151
152 if (!gOSHooksEnabled)
153 return;
154
155 if (!Patch_GetCache())
156 {
157 Patch_RecurseAndFind();
158
159 // Tip : Disable this when working on oshle funcs, you save the time to delete hle cache everyttime you need to test :p
160 Patch_FlushCache();
161 }
162
163 // Do this every time or just when originally patched
164 /*result = */OS_Reset();
165}
166
167
168void Patch_PatchAll()

Callers 2

Patch_PatchAllFunction · 0.85
OnCopiedRomFunction · 0.85

Calls 4

Patch_GetCacheFunction · 0.85
Patch_RecurseAndFindFunction · 0.85
Patch_FlushCacheFunction · 0.85
OS_ResetFunction · 0.85

Tested by

no test coverage detected