danielga / detouring Goto Github PK
View Code? Open in Web Editor NEWTools for detouring functions in C/C++.
Home Page: https://github.com/danielga/detouring
License: Other
Tools for detouring functions in C/C++.
Home Page: https://github.com/danielga/detouring
License: Other
Hello, I'm trying to detour virtual function GarrysMod::Lua::ILuaInterface::Cycle
on windows by using Detouring::ClassProxy
. On win32 build (main branch) everything successfully detours, but on x64 build (x86-64 branch) function not called (but Hook(...)
returns true).
As I found in Detouring::GetVirtualAddress
variable addr
is 0xFF
on win32 build, and 0xE9
on x64 build. Because of this check for jmp function fails, iterating over vtable also fails, then ClassProxy::Hook
tries to hook function by using Detouring::Hook
, and returns true, but function isn't called.
As I found myself, 0xFF
is opcode for jump to absolute address, and 0xE9
is opcode for jump to relative address. Is there are solution fix detouring on x64 build? Thank you in advance.
So I'm just wanting clarification but would this repository be useful for modifying how a function behaves. for example modifying the Exported MsgC function of teir0 to instead return reveresed text, and have it where if any place in the engine called the MsgC() function it would always be reverse text, just for a simple example.
Would this tool be usefull for achieving that sort of stuff? or is it more for detouring lua functions inside c++? Or would it only work inside the module using this itself?
Can we have a way to call Disable/Enable on certain hooks in shared_state->hooks?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.