From d43d097fd9cbfdc742136c9e171a6a1c4eb872e6 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 13 Jun 2020 13:58:34 +0200 Subject: [PATCH] The function type is now stored as a enum --- source/function_patcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/function_patcher.cpp b/source/function_patcher.cpp index 3da9967..3aebc47 100644 --- a/source/function_patcher.cpp +++ b/source/function_patcher.cpp @@ -53,10 +53,10 @@ void FunctionPatcherPatchFunction(function_replacement_data_t *replacements, uin continue; } } else { - if (function_data->functionType == STATIC_FUNCTION && function_data->alreadyPatched == 1) { + if (function_data->functionType == FUNCTION_PATCHER_STATIC_FUNCTION && function_data->alreadyPatched == 1) { if (isDynamicFunction((uint32_t) OSEffectiveToPhysical(function_data->realAddr))) { DEBUG_FUNCTION_LINE("INFO: The function %s is a dynamic function.", function_data->function_name); - function_data->functionType = DYNAMIC_FUNCTION; + function_data->functionType = FUNCTION_PATCHER_DYNAMIC_FUNCTION; } else { WHBLogWritef("Skipping %s, its already patched", function_data->function_name); continue;