Skip to content

Commit 6aa3c81

Browse files
committed
chore: Remove native_hooks.
They were broken on enhanced and weren't use anywhay.
1 parent 6dbb1b8 commit 6aa3c81

5 files changed

Lines changed: 0 additions & 284 deletions

File tree

src/hooks/script/init_native_tables.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010

1111
#include "hooking/hooking.hpp"
12-
#include "native_hooks/native_hooks.hpp"
1312
#include "services/script_patcher/script_patcher_service.hpp"
1413

1514
namespace big
@@ -22,7 +21,6 @@ namespace big
2221
if(program->m_code_blocks && program->m_code_size)
2322
{
2423
g_script_patcher_service->on_script_load(program);
25-
g_native_hooks->hook_program(program);
2624
}
2725

2826
return ret;

src/main.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "hooking/hooking.hpp"
1414
#include "invoker.hpp"
1515
#include "lua/lua_manager.hpp"
16-
#include "native_hooks/native_hooks.hpp"
1716
#include "pointers.hpp"
1817
#include "script_mgr.hpp"
1918
#include "security/ObfVar.hpp"
@@ -146,9 +145,6 @@ BOOL APIENTRY DllMain(HMODULE hmod, DWORD reason, PVOID)
146145
g_hooking->enable();
147146
LOG(INFO) << "Hooking enabled.";
148147

149-
auto native_hooks_instance = std::make_unique<native_hooks>();
150-
LOG(INFO) << "Dynamic native hooker initialized.";
151-
152148
auto lua_manager_instance =
153149
std::make_unique<lua_manager>(g_file_manager.get_project_folder("scripts"), g_file_manager.get_project_folder("scripts_config"));
154150
LOG(INFO) << "Lua manager initialized.";
@@ -187,9 +183,6 @@ BOOL APIENTRY DllMain(HMODULE hmod, DWORD reason, PVOID)
187183
hooking_instance.reset();
188184
LOG(INFO) << "Hooking uninitialized.";
189185

190-
native_hooks_instance.reset();
191-
LOG(INFO) << "Dynamic native hooker uninitialized.";
192-
193186
fiber_pool_instance.reset();
194187
LOG(INFO) << "Fiber pool uninitialized.";
195188

src/native_hooks/all_scripts.hpp

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/native_hooks/native_hooks.cpp

Lines changed: 0 additions & 165 deletions
This file was deleted.

src/native_hooks/native_hooks.hpp

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)