mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-21 14:39:32 +08:00
23 lines
510 B
C
23 lines
510 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "dobby/dobby_internal.h"
|
||
|
|
|
||
|
|
#include "InterceptRouting/InterceptRouting.h"
|
||
|
|
|
||
|
|
#include "TrampolineBridge/ClosureTrampolineBridge/ClosureTrampoline.h"
|
||
|
|
|
||
|
|
class FunctionInlineHookRouting : public InterceptRouting {
|
||
|
|
public:
|
||
|
|
FunctionInlineHookRouting(InterceptEntry *entry, dobby_dummy_func_t replace_func) : InterceptRouting(entry) {
|
||
|
|
this->replace_func = replace_func;
|
||
|
|
}
|
||
|
|
|
||
|
|
void DispatchRouting() override;
|
||
|
|
|
||
|
|
private:
|
||
|
|
void BuildRouting();
|
||
|
|
|
||
|
|
private:
|
||
|
|
dobby_dummy_func_t replace_func;
|
||
|
|
};
|