FunctionPatcherModule/source/function_patcher.h

30 lines
793 B
C
Raw Normal View History

2020-06-06 22:15:47 +02:00
#pragma once
2021-09-24 14:49:20 +02:00
2020-06-06 22:15:47 +02:00
#include <coreinit/dynload.h>
2022-02-03 20:53:38 +01:00
#include <function_patcher/fpatching_defines.h>
2020-06-06 22:15:47 +02:00
#ifdef __cplusplus
extern "C" {
#endif
typedef struct rpl_handling {
function_replacement_library_type_t library;
const char rplname[15];
OSDynLoad_Module handle;
} rpl_handling;
void FunctionPatcherRestoreDynamicFunctions(function_replacement_data_t *replacements, uint32_t size);
2020-06-06 22:15:47 +02:00
void FunctionPatcherPatchFunction(function_replacement_data_t *replacements, uint32_t size);
2020-06-12 21:10:59 +02:00
void FunctionPatcherRestoreFunctions(function_replacement_data_t *replacements, uint32_t size);
2020-06-06 22:15:47 +02:00
void FunctionPatcherResetLibHandles();
2021-09-24 14:49:20 +02:00
uint32_t getAddressOfFunction(char *functionName, function_replacement_library_type_t type);
2020-06-06 22:15:47 +02:00
bool isDynamicFunction(uint32_t physicalAddress);
#ifdef __cplusplus
}
#endif