mirror of
https://github.com/wiiu-env/AromaBaseModule.git
synced 2024-12-26 19:51:50 +01:00
16 lines
663 B
C++
16 lines
663 B
C++
#include "applicationendhook.h"
|
|
#include "applicationends_function_replacements.h"
|
|
#include "logger.h"
|
|
|
|
|
|
void initApplicationEndsHook() {
|
|
DEBUG_FUNCTION_LINE("Patch ApplicationEndsHook functions");
|
|
for (uint32_t i = 0; i < applicationendshook_function_replacements_size; i++) {
|
|
bool wasPatched = false;
|
|
if (FunctionPatcher_AddFunctionPatch(&applicationendshook_function_replacements[i], nullptr, &wasPatched) != FUNCTION_PATCHER_RESULT_SUCCESS || !wasPatched) {
|
|
OSFatal("AromaBaseModule: Failed to patch ApplicationEndsHook function");
|
|
}
|
|
}
|
|
DEBUG_FUNCTION_LINE("Patch ApplicationEndsHook functions finished");
|
|
}
|