hle: detect when patches fail to apply

This commit is contained in:
Luke Usher 2022-03-01 20:40:56 +00:00
parent f857593f77
commit 884a9080b5
1 changed files with 8 additions and 2 deletions

View File

@ -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 result = g_FunctionHooks[FunctionName].Install((void*)(FunctionAddr), (void*)patch.patchFunc);
if (!result) {
printf("HLE: %s Patch Failed\n", FunctionName.c_str());
}
else {
printf("HLE: %s Patched\n", FunctionName.c_str());
}
}
void EmuInstallPatches()