summaryrefslogtreecommitdiff
path: root/internal_rewrite/traceray.cpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2018-09-09 18:28:04 +0200
committernavewindre <boneyaard@gmail.com>2018-09-09 18:28:04 +0200
commit215818ddedc02be3a1a5c2be3912abdbcd29dd72 (patch)
tree16453999d9380f43a6f436e491e63aa58ac7e764 /internal_rewrite/traceray.cpp
parent620f39df29fed446ab007e03c7b071f635379f1f (diff)
detours etc
Diffstat (limited to 'internal_rewrite/traceray.cpp')
-rw-r--r--internal_rewrite/traceray.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/internal_rewrite/traceray.cpp b/internal_rewrite/traceray.cpp
deleted file mode 100644
index 8ca6d79..0000000
--- a/internal_rewrite/traceray.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-#include "hooks.hpp"
-
-#include <intrin.h>
-#include "mem.hpp"
-
-void __fastcall hooks::trace_ray( void* ecx_, void* edx_, const Ray_t& ray, unsigned int fMask, ITraceFilter* pTraceFilter, CBaseTrace* pTrace ) {
- static auto trace_ray_o = g_csgo.m_trace->get_old_function< decltype( &trace_ray ) >( 5 );
-
-/* if( std::this_thread::get_id( ) == g_csgo.m_d3d_thread ) {
- void* address = _ReturnAddress( );
- //MEMORY_BASIC_INFORMATION info;
- //VirtualQuery( address, &info, sizeof( MEMORY_BASIC_INFORMATION ) );
-
- char mod[ MAX_PATH ];
- //GetModuleFileNameA( ( HMODULE )info.AllocationBase, mod, MAX_PATH );
-
- //printf( "TRACERAY CALLED FROM D3D\n" );
- stack_t stack( get_baseptr( ) );
-
- int i{ };
- for( ; stack.get( ) > 0x100; stack = stack.next( ), i++ ) {
- MEMORY_BASIC_INFORMATION info;
- VirtualQuery( ( void* )( stack.return_address( ) ), &info, sizeof( MEMORY_BASIC_INFORMATION ) );
-
- GetModuleFileNameA( ( HMODULE )info.AllocationBase, mod, MAX_PATH );
-
- if( strstr( mod, "moneybot" ) )
- printf( "stack frame: %d retaddr: %08x %s\n", i, stack.return_address( ), mod );
- }
- }*/
-
- return trace_ray_o( ecx_, edx_, ray, fMask, pTraceFilter, pTrace );
-} \ No newline at end of file