Add main source file and placeholder hooks.

Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
aixxe
2016-12-20 20:20:39 +00:00
parent 27eb1e65e2
commit 2f9b1f444d
12 changed files with 304 additions and 0 deletions

View 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);
}