Fix PA fallback calcuation

This commit is contained in:
Maschell 2021-09-23 23:03:48 +02:00
parent 38b58faf88
commit dd3709ad48
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ void FunctionPatcherRestoreFunctions(function_replacement_data_t *replacements,
uint32_t sourceAddrPhys = (uint32_t) OSEffectiveToPhysical(sourceAddr);
// These hardcoded values should be replaced with something more dynamic.
if (sourceAddrPhys == 0 && (sourceAddr >= 0x00800000 || sourceAddr < 0x01000000)) {
if (sourceAddrPhys == 0 && (sourceAddr >= 0x00800000 && sourceAddr < 0x01000000)) {
sourceAddrPhys = sourceAddr + 0x30800000 - 0x00800000;
}