Skip to content

Commit

Permalink
Changed GameDraw hook to unused draw arena function (casualcat)
Browse files Browse the repository at this point in the history
  • Loading branch information
noah- committed Jul 1, 2017
1 parent 160f7ca commit c4f6787
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion D2BS.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#define XP_WIN

#define D2BS_VERSION "1.5.1864" //uptodate with d branch 1765 ff 20b
#define D2BS_VERSION "1.5.1865" //uptodate with d branch 1765 ff 20b

#include <windows.h>
#include <vector>
Expand Down
13 changes: 2 additions & 11 deletions D2Intercepts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,9 @@ void __declspec(naked) GamePacketSent_Interception()
}
}

void __declspec(naked) GameDraw_Intercept()
void GameDraw_Intercept(void)
{
__asm
{
call GameDraw;
ret

POP ESI
POP EBX
POP ECX
RETN 4
}
GameDraw();
}

void __declspec(naked) GameInput_Intercept()
Expand Down
2 changes: 1 addition & 1 deletion D2Intercepts.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "D2Structs.h"

void RealmPacketRecv_Interception();
void GameDraw_Intercept();
void GameDraw_Intercept(void);
void GameInput_Intercept();
void GamePacketReceived_Intercept();
void GamePacketSent_Interception();
Expand Down
2 changes: 1 addition & 1 deletion Patch.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

PatchHook Patches[] = {
{PatchCall, GetDllOffset("D2Client.dll", 0x7C89D), (DWORD)GameInput_Intercept, 5},//Updated 1.14d //0047C89D-BASE
{PatchJmp, GetDllOffset("D2Client.dll", 0x6C130), (DWORD)GameDraw_Intercept, 5},//Updated 1.14d //0046C130-BASE
{PatchJmp, GetDllOffset("D2Client.dll", 0x53B30), (DWORD)GameDraw_Intercept, 5},//Updated 1.14d //00453B30-BASE
{PatchCall, GetDllOffset("D2Client.dll", 0x5F802), (DWORD)GamePacketReceived_Intercept, 5},//Updated 1.14d //0045F802-BASE
{PatchJmp, GetDllOffset("D2Client.dll", 0x12AE5A), (DWORD)GamePacketSent_Interception, 5},//Updated 1.14d //0052AE5A-BASE
{PatchCall, GetDllOffset("D2Client.dll", 0x62D72), (DWORD)GetSelectedUnit_Intercept, 5},//Updated 1.14d //00462D72-BASE
Expand Down

0 comments on commit c4f6787

Please sign in to comment.