Update src/core/hle/Patches.cpp
Co-authored-by: RadWolfie <RadWolfie@users.noreply.github.com>
This commit is contained in:
parent
884a9080b5
commit
3a59c62753
|
@ -438,12 +438,12 @@ inline void EmuInstallPatch(const std::string FunctionName, const xbox::addr_xt
|
|||
return;
|
||||
}
|
||||
|
||||
auto result = g_FunctionHooks[FunctionName].Install((void*)(FunctionAddr), (void*)patch.patchFunc);
|
||||
if (!result) {
|
||||
printf("HLE: %s Patch Failed\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 Patched\n", FunctionName.c_str());
|
||||
printf("HLE: %s Patch Failed\n", FunctionName.c_str());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue