-
Copy
template.cpp
and.hpp
fromsrc/haggle/sdk/
tosrc/haggle/sdk/SexySDK/
-
Rename
template.
to whatever class you are adding, in this example:FloatingTextMgr
-
In
FloatingTextMgr.hpp
:- rename the
Template
class toFloatingTextMgr
- rename the
Template* temp
toFloatingTextMgr* floating_text_mgr
- rename the
-
In
FloatingTextMgr.cpp
:-
Auto method:
- Ctrl + H
- replace
Template
withFloatingTextMgr
-
Manual method:
- rename any
Template
line withFloatingTextMgr
- rename any
-
In the
Sexy::FloatingTextMgr::setup
function, replace0x0
with the ctor address- in this case,
0x0046E6E0
- in this case,
-
Double check the detour'd ctor function for the proper calling convention and arguments
- in this case, it only calls
this
as a__thiscall
- when detouring a function without the entire class reversed, we do
__fastcall
and passecx
andedx
- when detouring a function without the entire class reversed, we do
- in this case, it only calls
-
-
In
sdk/SexySDK.hpp
:- add
sdk/FloatingTextMgr.hpp
to the headers
- add
-
In
main.cpp
:- add
Sexy::FloatingTextMgr::setup()
to the modules list
- add