Include MinHook as a statically linked library
This commit is contained in:
10
lua_hook.cpp
10
lua_hook.cpp
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user