Skip to content

Commit

Permalink
Remove FileHook
Browse files Browse the repository at this point in the history
  • Loading branch information
doyaGu committed Jul 7, 2024
1 parent c48ee70 commit 8892a28
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 1,824 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 "Overlay.h"
#include "HookUtils.h"

Expand Down Expand Up @@ -81,10 +80,6 @@ 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;
Expand All @@ -99,7 +94,6 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD fdwReason, LPVOID lpReserved) {
utils::OutputDebugA("Fatal: Unable to uninstall Win32 hooks for ImGui.\n");
return FALSE;
}
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 @@ -34,7 +34,6 @@ set(BML_PRIVATE_HEADERS
Overlay.h

PluginManagerHook.h
FileHook.h
RenderHook.h

Narratives.h
Expand Down Expand Up @@ -74,7 +73,6 @@ set(BML_SOURCES
Bui.cpp

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

0 comments on commit 8892a28

Please sign in to comment.