2020-06-06 22:15:47 +02:00
|
|
|
#include <wums.h>
|
|
|
|
#include <whb/log_udp.h>
|
|
|
|
#include "function_patcher.h"
|
|
|
|
WUMS_MODULE_EXPORT_NAME("homebrew_functionpatcher");
|
2020-12-28 14:42:19 +01:00
|
|
|
WUMS_MODULE_SKIP_ENTRYPOINT();
|
|
|
|
WUMS_MODULE_INIT_BEFORE_RELOCATION_DONE_HOOK();
|
2020-06-06 22:15:47 +02:00
|
|
|
|
|
|
|
WUMS_INITIALIZE(){
|
|
|
|
WHBLogUdpInit();
|
|
|
|
}
|
|
|
|
|
|
|
|
WUMS_APPLICATION_STARTS() {
|
2020-12-26 14:49:48 +01:00
|
|
|
WHBLogUdpInit();
|
2020-06-06 22:15:47 +02:00
|
|
|
FunctionPatcherResetLibHandles();
|
|
|
|
}
|
|
|
|
|
|
|
|
WUMS_EXPORT_FUNCTION(FunctionPatcherPatchFunction);
|
2020-06-12 21:10:59 +02:00
|
|
|
WUMS_EXPORT_FUNCTION(FunctionPatcherRestoreFunctions);
|
2020-12-28 14:45:28 +01:00
|
|
|
WUMS_EXPORT_FUNCTION(FunctionPatcherRestoreDynamicFunctions);
|