From 1de6f6894aedcb4354af0abdafcb638818b6b56e Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 13 Jun 2020 14:45:18 +0200 Subject: [PATCH] Use the name of a function instead of the function pointer inside the macro. --- include/function_patcher/fpatching_defines.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/function_patcher/fpatching_defines.h b/include/function_patcher/fpatching_defines.h index 543ea94..28f8138 100644 --- a/include/function_patcher/fpatching_defines.h +++ b/include/function_patcher/fpatching_defines.h @@ -123,13 +123,13 @@ typedef struct function_replacement_data_t { REPLACE_FUNCTION_FOR_PROCESS(x, lib, function_name, FP_TARGET_PROCESS_GAME_AND_MENU) #define REPLACE_FUNCTION_FOR_PROCESS(x, lib, function_name, process) \ - REPLACE_FUNCTION_EX(x, lib, function_name, 0, 0, process) + REPLACE_FUNCTION_EX(x, lib, # function_name, 0, 0, process) #define REPLACE_FUNCTION_VIA_ADDRESS(x, physicalAddress, effectiveAddress) \ REPLACE_FUNCTION_VIA_ADDRESS_FOR_PROCESS(x, physicalAddress, effectiveAddress, FP_TARGET_PROCESS_ALL) #define REPLACE_FUNCTION_VIA_ADDRESS_FOR_PROCESS(x, physicalAddress, effectiveAddress, process) \ - REPLACE_FUNCTION_EX(x, LIBRARY_OTHER, x, physicalAddress, effectiveAddress, process) + REPLACE_FUNCTION_EX(x, LIBRARY_OTHER, # x, physicalAddress, effectiveAddress, process) #define REPLACE_FUNCTION_EX(x, lib, function_name, physicalAddress, effectiveAddress, process) \ { \