| 146 | } |
| 147 | |
| 148 | void 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 | |
| 168 | void Patch_PatchAll() |
no test coverage detected