Fix more signatures
This commit is contained in:
parent
07ded23438
commit
fd3792d80e
@ -274,7 +274,7 @@ static void UnHookFs()
|
|||||||
#if ENABLE_TEXTMODE
|
#if ENABLE_TEXTMODE
|
||||||
static InitRoutineEarly nullify_textmode([]() {
|
static InitRoutineEarly nullify_textmode([]() {
|
||||||
ReduceRamUsage();
|
ReduceRamUsage();
|
||||||
static auto addr1 = e8call_direct(gSignatures.GetEngineSignature("E8 ? ? ? ? 8B 93 ? ? ? ? 85 D2 0F 84 ? ? ? ?")) + 0x18;
|
static auto addr1 = e8call_direct(gSignatures.GetEngineSignature("E8 ? ? ? ? 8B 93 ? ? ? ? 85 D2 0F 84")) + 0x18;
|
||||||
static auto addr2 = sharedobj::materialsystem().Pointer(0x3EC08);
|
static auto addr2 = sharedobj::materialsystem().Pointer(0x3EC08);
|
||||||
|
|
||||||
static BytePatch patch1(addr1, { 0x81, 0xC4, 0x6C, 0x20, 0x00, 0x00, 0x5B, 0x5E, 0x5F, 0x5D, 0xC3 });
|
static BytePatch patch1(addr1, { 0x81, 0xC4, 0x6C, 0x20, 0x00, 0x00, 0x5B, 0x5E, 0x5F, 0x5D, 0xC3 });
|
||||||
@ -307,7 +307,7 @@ static InitRoutine nullifiy_textmode2([]() {
|
|||||||
return;
|
return;
|
||||||
if (CE_GOOD(LOCAL_E))
|
if (CE_GOOD(LOCAL_E))
|
||||||
return;
|
return;
|
||||||
static auto addr = e8call_direct(gSignatures.GetEngineSignature("E8 ? ? ? ? 8B 85 ? ? ? ? 89 C7 E9 ? ? ? ? "));
|
static auto addr = e8call_direct(gSignatures.GetEngineSignature("E8 ? ? ? ? 8B 85 ? ? ? ? 89 C7 E9"));
|
||||||
typedef void (*SendFinishedSync_t)(CBaseClientState *);
|
typedef void (*SendFinishedSync_t)(CBaseClientState *);
|
||||||
static SendFinishedSync_t SendFinishedSync_fn = SendFinishedSync_t(addr);
|
static SendFinishedSync_t SendFinishedSync_fn = SendFinishedSync_t(addr);
|
||||||
SendFinishedSync_fn(g_IBaseClientState);
|
SendFinishedSync_fn(g_IBaseClientState);
|
||||||
|
@ -106,7 +106,7 @@ bool re::CTFPartyClient::BInQueueForStandby()
|
|||||||
char re::CTFPartyClient::RequestLeaveForMatch(int type)
|
char re::CTFPartyClient::RequestLeaveForMatch(int type)
|
||||||
{
|
{
|
||||||
typedef char (*RequestLeaveForMatch_t)(re::CTFPartyClient *, int);
|
typedef char (*RequestLeaveForMatch_t)(re::CTFPartyClient *, int);
|
||||||
static uintptr_t addr = gSignatures.GetClientSignature("55 89 E5 57 56 53 83 EC ? 8B 45 ? 89 44 24 ? 8B 45 ? 89 04 24 E8 ? ? "
|
static uintptr_t addr = gSignatures.GetClientSignature("55 89 E5 57 56 53 83 EC ? 8B 45 ? 89 44 24 ? 8B 45 ? 89 04 24 E8"
|
||||||
"? ? 84 C0 89 C6 75");
|
"? ? 84 C0 89 C6 75");
|
||||||
static RequestLeaveForMatch_t RequestLeaveForMatch_fn = RequestLeaveForMatch_t(addr);
|
static RequestLeaveForMatch_t RequestLeaveForMatch_fn = RequestLeaveForMatch_t(addr);
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ char re::CTFPartyClient::RequestLeaveForMatch(int type)
|
|||||||
int re::CTFPartyClient::BInvitePlayerToParty(CSteamID steamid)
|
int re::CTFPartyClient::BInvitePlayerToParty(CSteamID steamid)
|
||||||
{
|
{
|
||||||
typedef int (*BInvitePlayerToParty_t)(re::CTFPartyClient *, CSteamID, bool);
|
typedef int (*BInvitePlayerToParty_t)(re::CTFPartyClient *, CSteamID, bool);
|
||||||
static uintptr_t addr = gSignatures.GetClientSignature("55 89 E5 57 56 53 81 EC ? ? ? ? 8B 45 ? 8B 5D ? 8B 55 ? 89 85 ? ? ? ? "
|
static uintptr_t addr = gSignatures.GetClientSignature("55 89 E5 57 56 53 81 EC ? ? ? ? 8B 45 ? 8B 5D ? 8B 55 ? 89 85"
|
||||||
"65 A1 ? ? ? ? 89 45 ? 31 C0 8B 45");
|
"65 A1 ? ? ? ? 89 45 ? 31 C0 8B 45");
|
||||||
static BInvitePlayerToParty_t BInvitePlayerToParty_fn = BInvitePlayerToParty_t(addr);
|
static BInvitePlayerToParty_t BInvitePlayerToParty_fn = BInvitePlayerToParty_t(addr);
|
||||||
return BInvitePlayerToParty_fn(this, steamid, false);
|
return BInvitePlayerToParty_fn(this, steamid, false);
|
||||||
|
@ -12,7 +12,7 @@ C_MannVsMachineStats *C_MannVsMachineStats::G_MannVsMachineStats()
|
|||||||
{
|
{
|
||||||
typedef C_MannVsMachineStats *(*G_MannVsMachineStats_t)();
|
typedef C_MannVsMachineStats *(*G_MannVsMachineStats_t)();
|
||||||
static uintptr_t addr = gSignatures.GetClientSignature("55 A1 ? ? ? ? 89 E5 5D C3 8D B6 00 00 00 00 55 89 E5 53 83 EC ? 8B 5D "
|
static uintptr_t addr = gSignatures.GetClientSignature("55 A1 ? ? ? ? 89 E5 5D C3 8D B6 00 00 00 00 55 89 E5 53 83 EC ? 8B 5D "
|
||||||
"? C7 83 ? ? ? ? ? ? ? ?");
|
"? C7 83");
|
||||||
static G_MannVsMachineStats_t G_MannVsMachineStats_fn = G_MannVsMachineStats_t(addr);
|
static G_MannVsMachineStats_t G_MannVsMachineStats_fn = G_MannVsMachineStats_t(addr);
|
||||||
|
|
||||||
return G_MannVsMachineStats_fn();
|
return G_MannVsMachineStats_fn();
|
||||||
@ -22,7 +22,7 @@ int *C_MannVsMachineStats::AddLocalPlayerUpgrade(int id, int &a3)
|
|||||||
typedef int *(*AddLocalPlayerUpgrade_t)(C_MannVsMachineStats *, int, int);
|
typedef int *(*AddLocalPlayerUpgrade_t)(C_MannVsMachineStats *, int, int);
|
||||||
static uintptr_t addr = gSignatures.GetClientSignature("55 89 E5 57 56 53 83 EC ? 8B 5D ? 8B 75 ? 8B 7D ? 8B 43 ? 8B 53 ? 83 "
|
static uintptr_t addr = gSignatures.GetClientSignature("55 89 E5 57 56 53 83 EC ? 8B 5D ? 8B 75 ? 8B 7D ? 8B 43 ? 8B 53 ? 83 "
|
||||||
"C0 ? 39 D0 7E ? 29 D0 89 1C 24 89 44 24 ? E8 ? ? ? ? 8B 43 ? 83 C0 ? "
|
"C0 ? 39 D0 7E ? 29 D0 89 1C 24 89 44 24 ? E8 ? ? ? ? 8B 43 ? 83 C0 ? "
|
||||||
"8B 13 89 43 ? 29 F0 83 E8 ? 89 F1 C1 E1 ?");
|
"8B 13 89 43 ? 29 F0 83 E8 ? 89 F1 C1 E1");
|
||||||
static AddLocalPlayerUpgrade_t AddLocalPlayerUpgrade_fn = AddLocalPlayerUpgrade_t(addr);
|
static AddLocalPlayerUpgrade_t AddLocalPlayerUpgrade_fn = AddLocalPlayerUpgrade_t(addr);
|
||||||
|
|
||||||
return AddLocalPlayerUpgrade_fn(this, id, a3);
|
return AddLocalPlayerUpgrade_fn(this, id, a3);
|
||||||
|
Reference in New Issue
Block a user