mirror of
https://github.com/wiiu-env/FunctionPatcherModule.git
synced 2026-10-20 14:37:47 -05:00
Do an OSFatal if the getting the PA from EA fails
This commit is contained in:
@@ -249,6 +249,10 @@ void FunctionPatcherRestoreFunctions(function_replacement_data_t *replacements,
|
|||||||
sourceAddrPhys = sourceAddr + 0x30800000 - 0x00800000;
|
sourceAddrPhys = sourceAddr + 0x30800000 - 0x00800000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(sourceAddrPhys == 0){
|
||||||
|
OSFatal("Failed to get physical address");
|
||||||
|
}
|
||||||
|
|
||||||
KernelCopyData(targetAddrPhys, sourceAddrPhys, 4);
|
KernelCopyData(targetAddrPhys, sourceAddrPhys, 4);
|
||||||
if (DEBUG_LOG_DYN) {
|
if (DEBUG_LOG_DYN) {
|
||||||
WHBLogPrintf("");
|
WHBLogPrintf("");
|
||||||
|
|||||||
Reference in New Issue
Block a user