Include MinHook as a statically linked library

This commit is contained in:
2026-03-01 17:41:52 -06:00
parent 952c233592
commit 533390606e
4 changed files with 16 additions and 12 deletions

View File

@@ -1,14 +1,8 @@
#include "lua_hook.h"
#include "functions/functions.h"
#include "minhook/include/MinHook.h"
#include <MinHook.h>
#include <windows.h>
#if defined _M_X64
#pragma comment(lib, "MinHook.x64.lib")
#elif defined _M_IX86
#pragma comment(lib, "MinHook.x86.lib")
#endif
// Resolved function pointers
fn_lua_open real_lua_open = nullptr;
fn_lua_pushstring pfn_pushstring = nullptr;
@@ -41,8 +35,6 @@ static lua_State* Hook_lua_open() {
Register_All(L);
if (pfn_debug_print) pfn_debug_print("[FoCAPI] Lua state initialized\n");
return L;
}