Merge pull request #2325 from LukeUsher/log-failed-patches
hle: detect when patches fail to apply
This commit is contained in:
commit
25b9a2efcc
|
@ -438,8 +438,14 @@ inline void EmuInstallPatch(const std::string FunctionName, const xbox::addr_xt
|
|||
return;
|
||||
}
|
||||
|
||||
g_FunctionHooks[FunctionName].Install((void*)(FunctionAddr), (void*)patch.patchFunc);
|
||||
printf("HLE: %s Patched\n", FunctionName.c_str());
|
||||
auto success = g_FunctionHooks[FunctionName].Install((void*)(FunctionAddr), (void*)patch.patchFunc);
|
||||
if (success) {
|
||||
printf("HLE: %s Patched\n", FunctionName.c_str());
|
||||
}
|
||||
else {
|
||||
printf("HLE: %s Patch Failed\n", FunctionName.c_str());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void EmuInstallPatches()
|
||||
|
|
Loading…
Reference in New Issue