feat(Hooks): Removed report cheating handler unused

This commit is contained in:
Yimura 2021-08-05 14:59:05 +02:00
parent e038356b19
commit 93c1a449fa
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682
6 changed files with 0 additions and 29 deletions

View File

@ -41,5 +41,4 @@ namespace big::functions
// Net Event Handlers
using report_cash_spawn = bool(__int64 creport_cash_spawn_event, CNetGamePlayer* source_player);
using report_cheating = void(__int64 a1, unsigned int a2, unsigned int a3, unsigned int a4);
}

View File

@ -58,8 +58,6 @@ namespace big
// Report Cash Spawn Event
m_report_cash_spawn_event_hook("RCSE", g_pointers->m_report_cash_spawn, &hooks::report_cash_spawn_handler),
// Report Cheating Hook
m_report_cheating_hook("RC", g_pointers->m_report_cheating, &hooks::report_cheating_handler),
// Scripted Game Event Hook
m_scripted_game_event_hook("SGEH", g_pointers->m_scripted_game_event, &hooks::scripted_game_event)
@ -97,7 +95,6 @@ namespace big
m_received_event_hook.enable();
m_report_cash_spawn_event_hook.enable();
m_report_cheating_hook.enable();
m_scripted_game_event_hook.enable();
@ -110,7 +107,6 @@ namespace big
m_scripted_game_event_hook.disable();
m_report_cheating_hook.disable();
m_report_cash_spawn_event_hook.disable();
m_received_event_hook.disable();

View File

@ -42,7 +42,6 @@ namespace big
);
static bool report_cash_spawn_handler(__int64 creport_cash_spawn_event, CNetGamePlayer* source_player);
static void report_cheating_handler(__int64 a1, unsigned int a2, unsigned int a3, unsigned int a4);
static bool scripted_game_event(CScriptedGameEvent* scripted_game_event, CNetGamePlayer* player);
};
@ -84,7 +83,6 @@ namespace big
detour_hook m_received_event_hook;
detour_hook m_report_cash_spawn_event_hook;
detour_hook m_report_cheating_hook;
detour_hook m_scripted_game_event_hook;
};

View File

@ -1,15 +0,0 @@
#include "hooking.hpp"
#include "util/notify.hpp"
namespace big
{
void hooks::report_cheating_handler(__int64 a1, unsigned int a2, unsigned int a3, unsigned int a4)
{
LOG(INFO) << "Caught game trying to report self.";
notify::above_map("Game tried to snitch.");
return;
//return g_hooking->m_report_cheating_hook.get_original<decltype(&hooks::report_cheating_handler)>()(a1, a2, a3, a4);
}
}

View File

@ -174,12 +174,6 @@ namespace big
m_report_cash_spawn = ptr.as<decltype(m_report_cash_spawn)>();
});
// Report Myself Handler
main_batch.add("RMH", "E8 ? ? ? ? 41 8B 47 0C 39 43 20", [this](memory::handle ptr)
{
m_report_cheating = ptr.as<decltype(m_report_cheating)>();
});
// Scripted Game Event Handler
main_batch.add("SGEH", "40 53 48 81 EC ? ? ? ? 44 8B 81 ? ? ? ? 4C 8B CA 41 8D 40 FF 3D ? ? ? ? 77 42", [this](memory::handle ptr)
{

View File

@ -59,7 +59,6 @@ namespace big
// Net Event Handlers
functions::report_cash_spawn* m_report_cash_spawn{};
functions::report_cheating* m_report_cheating{};
};
inline pointers *g_pointers{};