From df68a64aba9a1b3e957158aa181550e1bf484097 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sat, 14 Jul 2018 11:12:20 -0400 Subject: [PATCH] add console output --- vnr/texthook/host/pipe.cc | 4 +++- vnr/vnrhook/src/main.cc | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/vnr/texthook/host/pipe.cc b/vnr/texthook/host/pipe.cc index eaa1a30..a1fccde 100644 --- a/vnr/texthook/host/pipe.cc +++ b/vnr/texthook/host/pipe.cc @@ -9,6 +9,7 @@ #include "vnrhook/include/const.h" #include "ithsys/ithsys.h" #include +#include //#include "CommandQueue.h" //#include @@ -267,7 +268,8 @@ DWORD WINAPI RecvThread(LPVOID lpThreadParameter) lock = 0; } break; case HOST_NOTIFICATION_TEXT: - //qDebug() << ((LPCSTR)(buff + 8)); + USES_CONVERSION; + man->AddConsoleOutput(A2W((LPCSTR)(buff + 8))); break; } } else { diff --git a/vnr/vnrhook/src/main.cc b/vnr/vnrhook/src/main.cc index ffd51b1..ef72b75 100644 --- a/vnr/vnrhook/src/main.cc +++ b/vnr/vnrhook/src/main.cc @@ -302,7 +302,8 @@ DWORD NewHook(const HookParam &hp, LPCSTR name, DWORD flag) strcpy(str, name); } - ConsoleOutput("vnrcli:NewHook: try inserting hook"); + ConsoleOutput("vnrcli:NewHook: try inserting hook:"); + ConsoleOutput(str); // jichi 7/13/2014: This function would raise when too many hooks added ::hookman[current].InitHook(hp, str, flag & 0xffff);