mirror of
https://github.com/swordbluesword/PalWorld-NetCrack.git
synced 2025-04-29 02:47:17 +09:00
PROJECT SETTINGS - Additional Options "/bigobj" for debug builds - Output directory relocated to solution directory "/bin" - include "ProjDir" as an additional include directory for debug builds FEATURES - adjust params for some functions to include default values - relocate functions from Menu to Features for clarity - included comments ISSUES - SpeedHack is causing a crash if toggled while loading from main menu - Database Tab is causing a crash due to "Config.Update"
39 lines
679 B
C++
39 lines
679 B
C++
#include "../pch.h"
|
||
#include "../include/Hooking.hpp"
|
||
namespace DX11_Base {
|
||
Hooking::Hooking()
|
||
{
|
||
MH_Initialize();
|
||
#if DEBUG
|
||
g_Console->printdbg("Hooking::Initialized\n", Console::Colors::pink);
|
||
#endif
|
||
return;
|
||
}
|
||
|
||
Hooking::~Hooking()
|
||
{
|
||
MH_RemoveHook(MH_ALL_HOOKS);
|
||
}
|
||
|
||
void Hooking::Hook()
|
||
{
|
||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ע<EFBFBD><D7A2>HOOK
|
||
g_GameVariables->Init();
|
||
g_D3D11Window->Hook();
|
||
Config.Init();
|
||
MH_EnableHook(MH_ALL_HOOKS);
|
||
#if DEBUG
|
||
g_Console->printdbg("Hooking::Hook Initialized\n", Console::Colors::pink);
|
||
#endif
|
||
return;
|
||
}
|
||
|
||
void Hooking::Unhook()
|
||
{
|
||
g_D3D11Window->Unhook();
|
||
MH_RemoveHook(MH_ALL_HOOKS);
|
||
g_Console->DestroyConsole();
|
||
return;
|
||
}
|
||
}
|