Add initial support for storing and loadings hooks of modules (but not calling them)

This commit is contained in:
Maschell
2020-05-29 17:36:10 +02:00
parent 02441dab81
commit 6cb4f4e358
7 changed files with 91 additions and 1 deletions

23
source/module/HookData.h Normal file
View File

@@ -0,0 +1,23 @@
#pragma once
#include <wums.h>
class HookData {
public:
HookData(wums_hook_type_t type, const void *target) {
this->type = type;
this->target = target;
}
const wums_hook_type_t getType() const {
return type;
}
const void *getTarget() const {
return target;
}
private:
wums_hook_type_t type;
const void *target;
};