FunctionPatcherModule/source/main.cpp

22 lines
471 B
C++
Raw Normal View History

#include "logger.h"
2022-02-03 20:53:38 +01:00
#include <wums.h>
2020-06-06 22:15:47 +02:00
#include "function_patcher.h"
2021-09-24 14:49:20 +02:00
2020-06-06 22:15:47 +02:00
WUMS_MODULE_EXPORT_NAME("homebrew_functionpatcher");
2022-01-24 18:48:11 +01:00
WUMS_MODULE_SKIP_INIT_FINI();
2020-06-06 22:15:47 +02:00
2020-06-06 22:15:47 +02:00
WUMS_APPLICATION_STARTS() {
initLogging();
2020-06-06 22:15:47 +02:00
FunctionPatcherResetLibHandles();
}
WUMS_APPLICATION_REQUESTS_EXIT() {
deinitLogging();
2020-06-06 22:15:47 +02:00
}
WUMS_EXPORT_FUNCTION(FunctionPatcherPatchFunction);
2020-06-12 21:10:59 +02:00
WUMS_EXPORT_FUNCTION(FunctionPatcherRestoreFunctions);
WUMS_EXPORT_FUNCTION(FunctionPatcherRestoreDynamicFunctions);