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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_FunctionHooks[FunctionName].Install((void*)(FunctionAddr), (void*)patch.patchFunc);
|
auto success = g_FunctionHooks[FunctionName].Install((void*)(FunctionAddr), (void*)patch.patchFunc);
|
||||||
printf("HLE: %s Patched\n", FunctionName.c_str());
|
if (success) {
|
||||||
|
printf("HLE: %s Patched\n", FunctionName.c_str());
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
printf("HLE: %s Patch Failed\n", FunctionName.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmuInstallPatches()
|
void EmuInstallPatches()
|
||||||
|
|
Loading…
Reference in New Issue