Skip to content

Commit

Permalink
Remove FileHook
Browse files Browse the repository at this point in the history
  • Loading branch information
doyaGu committed Jun 16, 2024
1 parent 2a8e2b0 commit e3c77ff
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 1,885 deletions.
6 changes: 0 additions & 6 deletions src/BML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "ModManager.h"
#include "PluginManagerHook.h"
#include "FileHook.h"
#include "HookUtils.h"

CKERROR CreateModManager(CKContext *context) {
Expand Down Expand Up @@ -80,17 +79,12 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD fdwReason, LPVOID lpReserved) {
utils::OutputDebugA("Fatal: Unable to hook CKPluginManager.\n");
return FALSE;
}
if (!CP_HOOK_CLASS_NAME(CKFile)::InitHooks()) {
utils::OutputDebugA("Fatal: Unable to hook CKFile.\n");
return FALSE;
}
if (!HookCreateCKBehaviorPrototypeRuntime()) {
utils::OutputDebugA("Fatal: Unable to hook CKBehaviorPrototypeRuntime.\n");
return FALSE;
}
break;
case DLL_PROCESS_DETACH:
CP_HOOK_CLASS_NAME(CKFile)::ShutdownHooks();
CP_HOOK_CLASS_NAME(CKPluginManager)::ShutdownHooks();
if (MH_Uninitialize() != MH_OK) {
utils::OutputDebugA("Fatal: Unable to uninitialize MinHook.\n");
Expand Down
2 changes: 0 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ set(BML_PRIVATE_HEADERS

Overlay.h

FileHook.h
PluginManagerHook.h
RenderHook.h

Expand Down Expand Up @@ -69,7 +68,6 @@ set(BML_SOURCES
Overlay.cpp
Bui.cpp

FileHook.cpp
PluginManagerHook.cpp
RenderHook.cpp
InputHook.cpp
Expand Down
Loading

0 comments on commit e3c77ff

Please sign in to comment.