int __fastcall hkProcessInternal ( __int64 This, __int64 Stack_frame, void* pResult ) { FFrame* pStack = (FFrame*) Stack_frame; UObject* pthis = (UObject* ) This; int retval = 0; if ( pStack && pthis && !is_f_filter( pStack->Node->GetFullName() ) ) { if( __gLog->Level() == LL_DEBUG ) { LOGTS(LL_DEBUG) << " [" << GetCurrentThreadId() << "] Object: " << SDKMC_SSHEX(pthis, 8) << ", name: " << pthis->GetFullName(); if ( pStack->Node ) { LOG(LL_DEBUG) << ", func: " << pStack ->Node->GetFullName(); } LOG(LL_DEBUG) << "\n"; } std::string func(pStack ->Node->GetFullName()); int retval = 0; if (__hooksHolder->CallFunc(func, This, Stack_frame, pResult, retval) ) return retval; } retval = ((ProcessInternalPtr)OriginalProcessInternal->get())(This, Stack_frame, pResult); return retval; }
static void logstart(void) { LOGPUTS(1, SPL("[")); LOGTS(1); LOGPUTS(1, SPL("] ")); }