From de4938474cc489457d5a5b7d5573db18df53b6b4 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 7 Jun 2020 13:59:02 +0200 Subject: [PATCH] Formatting --- relocator/src/hooks.cpp | 4 ++-- relocator/src/hooks.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/relocator/src/hooks.cpp b/relocator/src/hooks.cpp index 07b3d08..82f8262 100644 --- a/relocator/src/hooks.cpp +++ b/relocator/src/hooks.cpp @@ -27,7 +27,7 @@ void CallHook(const ModuleData &module, wums_hook_type_t type) { } if (type == curHook.getType()) { - if ((type == WUMS_HOOK_APPLICATION_STARTS|| + if ((type == WUMS_HOOK_APPLICATION_STARTS || type == WUMS_HOOK_APPLICATION_ENDS || type == WUMS_HOOK_INIT_WUT || type == WUMS_HOOK_FINI_WUT)) { @@ -37,7 +37,7 @@ void CallHook(const ModuleData &module, wums_hook_type_t type) { DEBUG_FUNCTION_LINE("Calling hook of type %s [%d] %d for %s\n", hook_names[type], type, curHook.getType(), module.getExportName().c_str(), gModuleData); wums_app_init_args_t args; args.module_information = gModuleData; - ((void (*)(wums_app_init_args_t*)) ((uint32_t *) func_ptr))(&args); + ((void (*)(wums_app_init_args_t *)) ((uint32_t *) func_ptr))(&args); } break; } diff --git a/relocator/src/hooks.h b/relocator/src/hooks.h index 22746d6..5356252 100644 --- a/relocator/src/hooks.h +++ b/relocator/src/hooks.h @@ -6,4 +6,5 @@ #include "../../source/module/ModuleData.h" void CallHook(const std::vector &modules, wums_hook_type_t type); + void CallHook(const ModuleData &module, wums_hook_type_t type); \ No newline at end of file