Move default settings to relevant hook files.

Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
aixxe 2016-12-23 20:45:37 +00:00
parent afc72efcd8
commit 468fbe5d07
3 changed files with 8 additions and 8 deletions

View File

@ -2,14 +2,6 @@
bool GUI::IsVisible = false; bool GUI::IsVisible = false;
bool GUI::BunnyHop::Enabled = true;
bool GUI::NoSky::Enabled = true;
float GUI::NoSky::Color[3] = {0, 0, 0.275};
bool GUI::ASUS::Enabled = true;
float GUI::ASUS::Color[4] = {1, 1, 1, 0.75};
void GUI::Render() { void GUI::Render() {
// Draw various global components. // Draw various global components.
GUI::DrawFramerateCounter(); GUI::DrawFramerateCounter();

View File

@ -2,6 +2,8 @@
typedef void (*CreateMove_t) (IBaseClientDLL*, int, float, bool); typedef void (*CreateMove_t) (IBaseClientDLL*, int, float, bool);
bool GUI::BunnyHop::Enabled = true;
void Hooks::CreateMove(IBaseClientDLL* thisptr, int sequence, float frametime, bool active) { void Hooks::CreateMove(IBaseClientDLL* thisptr, int sequence, float frametime, bool active) {
// Get the original function and store it statically. // Get the original function and store it statically.
static CreateMove_t oCreateMove = clientdll_hook->GetOriginalFunction<CreateMove_t>(21); static CreateMove_t oCreateMove = clientdll_hook->GetOriginalFunction<CreateMove_t>(21);

View File

@ -2,6 +2,12 @@
typedef void (*FrameStageNotify_t) (IBaseClientDLL*, ClientFrameStage_t); typedef void (*FrameStageNotify_t) (IBaseClientDLL*, ClientFrameStage_t);
bool GUI::NoSky::Enabled = true;
float GUI::NoSky::Color[3] = {0, 0, 0.275};
bool GUI::ASUS::Enabled = true;
float GUI::ASUS::Color[4] = {1, 1, 1, 0.75};
void Hooks::FrameStageNotify(IBaseClientDLL* thisptr, ClientFrameStage_t stage) { void Hooks::FrameStageNotify(IBaseClientDLL* thisptr, ClientFrameStage_t stage) {
// Get the original function and store it statically. // Get the original function and store it statically.
static FrameStageNotify_t oFrameStageNotify = clientdll_hook->GetOriginalFunction<FrameStageNotify_t>(35); static FrameStageNotify_t oFrameStageNotify = clientdll_hook->GetOriginalFunction<FrameStageNotify_t>(35);