From 3a59c62753a3df4fd372ae8105d1a6d9a38a36f4 Mon Sep 17 00:00:00 2001 From: Luke Usher Date: Tue, 1 Mar 2022 22:41:18 +0000 Subject: [PATCH] Update src/core/hle/Patches.cpp Co-authored-by: RadWolfie --- src/core/hle/Patches.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/hle/Patches.cpp b/src/core/hle/Patches.cpp index 9af7930fe..74e0b3d2d 100644 --- a/src/core/hle/Patches.cpp +++ b/src/core/hle/Patches.cpp @@ -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()); } }