mirror of
https://github.com/wiiu-env/FunctionPatcherModule.git
synced 2025-01-07 23:50:44 +01:00
Fix PA fallback calcuation
This commit is contained in:
parent
38b58faf88
commit
dd3709ad48
@ -245,7 +245,7 @@ void FunctionPatcherRestoreFunctions(function_replacement_data_t *replacements,
|
|||||||
uint32_t sourceAddrPhys = (uint32_t) OSEffectiveToPhysical(sourceAddr);
|
uint32_t sourceAddrPhys = (uint32_t) OSEffectiveToPhysical(sourceAddr);
|
||||||
|
|
||||||
// These hardcoded values should be replaced with something more dynamic.
|
// 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;
|
sourceAddrPhys = sourceAddr + 0x30800000 - 0x00800000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user