mirror of
https://github.com/wiiu-env/FunctionPatcherModule.git
synced 2024-11-06 01:55:12 +01:00
30 lines
793 B
C
30 lines
793 B
C
#pragma once
|
|
|
|
#include <coreinit/dynload.h>
|
|
#include <function_patcher/fpatching_defines.h>
|
|
|
|
#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);
|
|
|
|
void FunctionPatcherPatchFunction(function_replacement_data_t *replacements, uint32_t size);
|
|
|
|
void FunctionPatcherRestoreFunctions(function_replacement_data_t *replacements, uint32_t size);
|
|
|
|
void FunctionPatcherResetLibHandles();
|
|
|
|
uint32_t getAddressOfFunction(char *functionName, function_replacement_library_type_t type);
|
|
|
|
bool isDynamicFunction(uint32_t physicalAddress);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |