From 7a9ecbe842d3ce3d5e601baaaaa28958ec1f7a43 Mon Sep 17 00:00:00 2001 From: Artem Golubikhin Date: Thu, 13 Jul 2017 10:13:57 +0000 Subject: [PATCH] Added some additional tests for linux --- Main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Main.cpp b/Main.cpp index 6265b0c..ada170f 100644 --- a/Main.cpp +++ b/Main.cpp @@ -372,13 +372,17 @@ void Init() { memcpy(g_engfuncs.pfnMessageEnd, g_patchedBytes, 5); VirtualProtect(g_engfuncs.pfnMessageEnd, 5, oldProtect, &oldProtect); #else + LOG_CONSOLE(PLID, "Pre hello"); Dl_info dlinfo; dladdr((void*)g_engfuncs.pfnMessageEnd, &dlinfo); + LOG_CONSOLE(PLID, "Hello"); auto handle = dlopen(dlinfo.dli_fname, RTLD_NOW); + LOG_CONSOLE(PLID, "How are you?"); g_msgBuffer = (decltype(g_msgBuffer))dlsym(handle, "gMsgBuffer"); g_msgType = (decltype(g_msgType))dlsym(handle, "gMsgType"); + LOG_CONSOLE(PLID, "It should be here"); dlclose(handle);