mirror of
https://github.com/wiiu-env/FunctionPatcherModule.git
synced 2025-01-06 23:28:14 +01:00
Do an OSFatal if the getting the PA from EA fails
This commit is contained in:
parent
dd3709ad48
commit
551144ddbd
@ -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("");
|
||||
|
Loading…
Reference in New Issue
Block a user