Update src/core/hle/Patches.cpp

Co-authored-by: RadWolfie <RadWolfie@users.noreply.github.com>
This commit is contained in:
Luke Usher 2022-03-01 22:41:18 +00:00 committed by GitHub
parent 884a9080b5
commit 3a59c62753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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());
}
}