mirror of
https://github.com/wiiu-env/WUMSLoader.git
synced 2026-09-28 12:56:34 -05:00
Add initial support for storing and loadings hooks of modules (but not calling them)
This commit is contained in:
23
source/module/HookData.h
Normal file
23
source/module/HookData.h
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user