Add main source file and placeholder hooks.
Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
11
src/Hooks/FrameStageNotify.cpp
Normal file
11
src/Hooks/FrameStageNotify.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "Hooks.h"
|
||||
|
||||
typedef void (*FrameStageNotify_t) (IBaseClientDLL*, ClientFrameStage_t);
|
||||
|
||||
void Hooks::FrameStageNotify(IBaseClientDLL* thisptr, ClientFrameStage_t stage) {
|
||||
// Get the original function and store it statically.
|
||||
static FrameStageNotify_t oFrameStageNotify = clientdll_hook->GetOriginalFunction<FrameStageNotify_t>(35);
|
||||
|
||||
// Call original 'IBaseClientDLL::FrameStageNotify'.
|
||||
oFrameStageNotify(thisptr, stage);
|
||||
}
|
||||
Reference in New Issue
Block a user