mirror of
https://github.com/wiiu-env/FunctionPatcherModule.git
synced 2026-08-22 00:34:07 -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;
|
||||
}
|
||||
|
||||
if(sourceAddrPhys == 0){
|
||||
OSFatal("Failed to get physical address");
|
||||
}
|
||||
|
||||
KernelCopyData(targetAddrPhys, sourceAddrPhys, 4);
|
||||
if (DEBUG_LOG_DYN) {
|
||||
WHBLogPrintf("");
|
||||
|
||||
Reference in New Issue
Block a user