Formatting

This commit is contained in:
Maschell 2020-06-07 13:59:02 +02:00
parent e70ec9b345
commit de4938474c
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}

View File

@ -6,4 +6,5 @@
#include "../../source/module/ModuleData.h"
void CallHook(const std::vector<ModuleData> &modules, wums_hook_type_t type);
void CallHook(const ModuleData &module, wums_hook_type_t type);