2022-01-24 18:52:59 +01:00
|
|
|
#include "logger.h"
|
2022-02-03 20:53:38 +01:00
|
|
|
#include <wums.h>
|
2022-01-12 23:07:09 +01:00
|
|
|
|
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
|
|
|
|
2022-01-12 23:07:09 +01:00
|
|
|
|
2020-06-06 22:15:47 +02:00
|
|
|
WUMS_APPLICATION_STARTS() {
|
2022-01-24 18:52:59 +01:00
|
|
|
initLogging();
|
2020-06-06 22:15:47 +02:00
|
|
|
FunctionPatcherResetLibHandles();
|
2022-01-12 23:07:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
WUMS_APPLICATION_REQUESTS_EXIT() {
|
2022-01-24 18:52:59 +01:00
|
|
|
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);
|
2020-12-28 14:45:28 +01:00
|
|
|
WUMS_EXPORT_FUNCTION(FunctionPatcherRestoreDynamicFunctions);
|