Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implemented packet appending and packet building from outside the packet broker. * All trampolines now revertable (Fixed #18)
- Loading branch information
1 parent
f1b0771
commit f020dc0
Showing
33 changed files
with
638 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,11 @@ | ||
#pragma once | ||
|
||
#include <Trampoline.h> | ||
|
||
namespace nethax | ||
{ | ||
namespace events | ||
{ | ||
extern Trampoline AddHPHax; | ||
extern float DirtyHPHack; | ||
|
||
static inline void AddHPOriginal(int playerNum, float amount) | ||
{ | ||
void* target = AddHPHax.Target(); | ||
__asm | ||
{ | ||
mov eax, [playerNum] | ||
push amount | ||
call target | ||
add esp, 4 | ||
} | ||
} | ||
void AddHP_original(int playerNum, float amount); | ||
void InitAddHP(); | ||
void DeinitAddHP(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,11 @@ | ||
#pragma once | ||
|
||
#include <Trampoline.h> | ||
|
||
namespace nethax | ||
{ | ||
namespace events | ||
{ | ||
extern Trampoline AddRingsHax; | ||
extern int DirtyRingHack; | ||
|
||
static inline void AddRingsOriginal(char playerNum, int numRings) | ||
{ | ||
void* target = AddRingsHax.Target(); | ||
__asm | ||
{ | ||
mov edx, [numRings] | ||
mov al, [playerNum] | ||
call target | ||
} | ||
} | ||
|
||
void AddRings_original(char playerNum, int numRings); | ||
void InitAddRings(); | ||
void DeinitAddRings(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,6 @@ namespace nethax | |
namespace events | ||
{ | ||
void InitCharacterSync(); | ||
void DeinitCharacterSync(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,6 @@ namespace nethax | |
namespace events | ||
{ | ||
void InitEmeraldSync(); | ||
void DeinitEmeraldSync(); | ||
} | ||
} |
Oops, something went wrong.